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.
Asked
Active
Viewed 2,601 times
1
-
Are there any log messages prior to the crash? – Matt Aldridge Jan 19 '12 at 12:13
-
Please post crash stack trace. – kosa Jan 19 '12 at 12:13
-
Why do you need larger heap size? Is Tomcat unable to run your app with this heap size? If yes whats the error? – Muhammad Imran Tariq Jan 19 '12 at 12:17
-
See if this is impacting you http://stackoverflow.com/a/497757/324900 – Reddy Jan 19 '12 at 12:22
3 Answers
1
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.

Yavar
- 11,883
- 5
- 32
- 63
0
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.
0
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).

belgther
- 2,544
- 17
- 15