Tuning JVM

From: Mark (decent_tiger_at_yahoo.com)
Date: 12/31/03


Date: 30 Dec 2003 17:10:33 -0800

I am using JVM version 1.4.1 (java.vm.version=1.4.1-1) to run my
program on UNIX. When I run my program using the default JVM settings,
I don't get exceptions but my program crashes after 30 minutes without
throwing any exception. I thought, tuning of JVM would be a solution,
so I ran my program using -Xms128m -Xmx128m and now it gives me an
OutOfMemory error within 2 minutes. -

Unknown error:
java.lang.OutOfMemoryError
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)

Isn't JVM heap size by default set to 64M ? If so, why would my
program give me memory error sooner when I have increased and set max
heap size to 128M. Can anyone throw some light on this based on their
experience.....

Thanks in advance.



Relevant Pages

  • Re: Exception Jargon
    ... JVM, but I was looking for an explanation in low level terms (stack ... frames etc.) or the way the OS handles exceptions. ... public static void main ...
    (comp.lang.java.programmer)
  • Cant catch access violation exceptions in native code hosted by Tomcat
    ... During normal execution of some JNI code, hosted under Tomcat, there seems ... Those exceptions are correctly recovered by the JVM and everything is ...
    (comp.lang.java.programmer)
  • Re: Genetic Programming and Machine Language
    ... If he can crash the JVM by loading bad byte code, ... Instead of an "initial period of frustrating JVM crashes" ... the validation exceptions are sadistically sparse ...
    (comp.lang.java.programmer)
  • Re: Throwing C++ exception in JNI
    ... On Tue, 07 Sep 2004 13:13:50 GMT, Boris Tabenkin wrote: ... > exceptions. ... > initialized by the JVM since the JVM is written in C. ... Why don't you do the necessary initialization in JNI_OnLoad? ...
    (comp.lang.java)