&nbsp;&nbsp; On Mon, Jun 05, 2006 at 10:48:09AM -0500, Jeremy White wrote:<br> &nbsp; &nbsp;&gt; I am running in to some strange memory errors when trying to optimize a<br> &nbsp; &nbsp;JVM.<br> &nbsp; &nbsp;&gt; When I set the min and max to 1.5gb and start the JVM, I immediately get
<br> &nbsp; &nbsp;an<br> &nbsp; &nbsp;&gt; OutOfMemoryError. If I pull it back to 1.2gb or so, it works fine. The<br> &nbsp; &nbsp;&gt; amount of physical memory in this machine is 4gb, and nothing else is<br> &nbsp; &nbsp;really<br> &nbsp; &nbsp;&gt; running on it. The machine is running RHEL 
2.1, kernel 2.4.9-e.65smp.<br> &nbsp; &nbsp;&gt;<br> &nbsp; &nbsp;&gt; We have another server that we just upgraded the OS on, to RHEL 3, kernel<br> &nbsp; &nbsp;&gt; 2.4.21-40.ELsmp. On that server, the JVM starts fine with a 1.5gb min/max.<br> &nbsp; &nbsp;&gt;
<br> &nbsp; &nbsp;&gt; I suspect this has to do with the way the kernel manages memory. I know I<br> &nbsp; &nbsp;&gt; have read that you can not give a JVM over 2gb of memory in Linux, but I<br> &nbsp; &nbsp;am<br> &nbsp; &nbsp;&gt; not even getting close to that. Since this works on the newer kernel,
<br> &nbsp; &nbsp;maybe<br> &nbsp; &nbsp;&gt; its something thats compiled in, but I was hoping it was a configuration<br> &nbsp; &nbsp;&gt; that could be changed.<br> &nbsp; &nbsp;&gt;<br> &nbsp; &nbsp;&gt; Anyway, I would just like to get some ideas because I really would like to
<br> &nbsp; &nbsp;&gt; know more about tuning the kernel for memory management, and I would like<br> &nbsp; &nbsp;to<br> &nbsp; &nbsp;&gt; know why these JVMs are throwing these errors - mostly out of curiousity<br><br>- Ignored:<br> &nbsp; &nbsp;as<br> &nbsp; &nbsp;&gt; to how things work.
<br><br> &nbsp; &nbsp;What JVM and what version? Have you tried SUN, IBM and JRockit?<br><br> &nbsp; &nbsp;Is this for an application server, or a J2SE application?<br><br> &nbsp; &nbsp;From the memory limits I infer you are running on i386. Are both<br>
 &nbsp; &nbsp;machines identical? Are both JVMs indentical?<br><br> &nbsp; &nbsp;florin<br><br> &nbsp; &nbsp;Florin,<br><br> &nbsp; &nbsp;Thanks for the quick response. &nbsp;I am currently using the Sun JVM version<br> &nbsp; &nbsp;1.4.2_08. &nbsp;This is for a Tomcat application server version 
4.1.31 . &nbsp;Yes<br> &nbsp; &nbsp;both machine are identical except for the OS. &nbsp;One is RHEL 3, kernel<br> &nbsp; &nbsp;2.4.21-40.ELsmp and the other is RHEL 2.1, kernel 2.4.9-e.65smp.<br><br> &nbsp; &nbsp;Jeremy