简体   繁体   中英

Problems setting Tomcat Java Heap Size to 8GB on Windows 7 (64 bit)?

I need larger Java Heap Size atleast 8GB minimum for my search application. I am working on Windows 7 (64 bit). I am not able to allocate more than 1500MB using CATALINA_OPTS environment variable. When I try allocating more the Tomcat crashes and is not able to start. I donwloaded 64 bit Java Run Time now and also subsequently 64 bit Apache Tomcat. Even now its not permitting me to start with more Heap Size. It (Tomcat 64 bit) crashes again. Any help would be appreciated.

I solved the problem. Actually I was trying to start Tomcat (startup.bat) in command prompt in Windows. It was crashing. Still dont know the reason for this (maybe related to starting 64 bit Tomcat on Dos/ When I start tomcat as a service using service.bat install it works perfectly fine.

From: Increasing the JVM maximum heap size for memory intensive applications

Try to specify -d64 on your CATALINA_OPTS .

Edit: Seems that option only has an effect on Solaris. Nevermind.

let the environment variables JAVA_HOME and PATH refer to your 64-Bit JVM. You can check it on command-line by executing java -version and %JAVA_HOME%\\bin\\java.exe -version (on Windows).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM