Reputation: 11933
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.
Upvotes: 1
Views: 2644
Reputation: 11933
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.
Upvotes: 1
Reputation: 2534
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).
Upvotes: 0
Reputation: 7604
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.
Upvotes: 0