Re: Tuning JVM
From: Nathan Zumwalt (nathanz_at_hotmail.com)
Date: 12/31/03
- Next message: curious: "Re: le path d'un applet"
- Previous message: Geoffrey: "Re: le path d'un applet"
- In reply to: Mark: "Tuning JVM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Dec 2003 07:23:50 -0800
I think the lower bound of the heap size is set to 64M, but the upper
bound is much higher by default.
Before you start tuning your JVM, I'd make sure you're not swallowing
an exceptions that are getting thrown. If you're sure that all
exceptions are being caught and at least printed out to the console,
you might want to looks at turning off hotspot. Or, manually
specifying the mode to -client or -server.
If you're still not getting anywhere, you might want to try using a
profiler, such as JProbe.
-Nathan
decent_tiger@yahoo.com (Mark) wrote in message news:<6261f9fc.0312301710.55691c54@posting.google.com>...
> 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.
- Next message: curious: "Re: le path d'un applet"
- Previous message: Geoffrey: "Re: le path d'un applet"
- In reply to: Mark: "Tuning JVM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|