You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ma...@neftochim.bg on 2006/11/28 18:29:53 UTC

Maximum heap in Windows Tomcat 5.0.28 & Windows 2003 /3GB switch

Hi all

The system is Windows Server 2003 SP1 Standard, Java SDK 1.4.2_08, Tomcat 5.0.28, JVMms=512M, JVMmx=1360M
I have this situation:
Before I see in GC maximum memory, in stdout.log appears :

[2006-11-28 14:05:46,409|ERROR|http-8080-Processor192|com.documentum.fc.common.DfLogger|error|60  ] invokeMethod() failed while calling: onLaunchProgress
unable to create new native thread : unable to create new native thread
java.lang.OutOfMemoryError: unable to create new native thread
	at java.lang.Thread.start(Native Method)
	at java.util.Timer.<init>(Timer.java:112)
	...
	at java.lang.Thread.run(Thread.java:534)


And Tomcat hangs

I used Process Explorer from Sysinternals, to see what's the real used memory .
And I notice that when "Virtual Size" go up above 2GB, and  the error appears.
Is that mean that I never can’t used my JVMmx because of the overhead from the OS or something else in JVM?

What about using /3GB switch in boot.ini.
Is Tomcat aware of that option (I know that it needs special attention in compilation and/or source code)?

Best Regards,
YANKO MARKOV
Documentum Division Lead Specialist
LUKOIL TECHNOLOGY SERVICES BULGARIA EOOD 
ICQ : 227109561
TEL.: +359 5511 3957 ; +359 5511 3549