On Wed, 30 Nov 2011 16:14:45 +0530, Choudhury wrote
> Hello , 
>         The question is not why I would use 32 bit JVM , the 
> question is whether there is any maximum limit on memory for Tomcat 
> and if yes why ? Regards,
>
It depends on the windows version used actually. From what I remember this is
limited to maximum 2GB for user processes. The easiest way to test is, is with
a small app that shows some memory information like:
public class MaxMemory {
    public static void main(String[] args) {
        Runtime rt = Runtime.getRuntime();
        long totalMem = rt.totalMemory();
        long maxMem = rt.maxMemory();
        long freeMem = rt.freeMemory();
        double megs = 1048576.0;

        System.out.println ("Total Memory: " + totalMem + " (" +
(totalMem/megs) + " MiB)");
        System.out.println ("Max Memory:   " + maxMem + " (" + (maxMem/megs) +
" MiB)");
        System.out.println ("Free Memory:  " + freeMem + " (" + (freeMem/megs)
+ " MiB)");
    }
}

Try to run it with different options for the heap. I would be surprised if you
would get over 1600MB.  
 
--
/(bb|[^b]{2})/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to