472,954 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 software developers and data experts.

Tuning JVM

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(ByteArrayOutpu tStream.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.
Jul 17 '05 #1
2 6538
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

de**********@yahoo.com (Mark) wrote in message news:<62**************************@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(ByteArrayOutpu tStream.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.

Jul 17 '05 #2
na*****@hotmail.com (Nathan Zumwalt) wrote in message news:<52**************************@posting.google. com>...
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

de**********@yahoo.com (Mark) wrote in message news:<62**************************@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(ByteArrayOutpu tStream.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.


Thanks for the response. But, how will I know what the default heap
size settings of the JVM (default minimum heap size and maximum heap
size). Is there a way to display the heap size settings and other
properties of the JVM.

Thanks in advance,
-Mark
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Clemente | last post by:
Hi, I want tuning the coulor of a picture with GD libraries, is it possible?
3
by: Maryam | last post by:
Hi, I am having problems getting anything useful out of the index tuning wizard. I have created a table and inserted data into it. When i run the index tuning wizard i expect 2 indexes to be...
1
by: Jean-Marc Blaise | last post by:
Hi, I find much regrettable that Database Engine Tuning Advisor be not part of MS-Express Edition ... A server without such help is not a server. Besides, you've got the tutorials, but not the...
0
by: meytal.weiss | last post by:
Hi, I am using the dta utility successfully. I have problem to tune query without specifying the schema as prefix in case the tuning session is not with the login that own the schema, the dta...
3
by: mleal | last post by:
Does anyone have some more detailed information about how Oracle and MS implement / allow Tuning on Oracle 10g and SQL Server 2005 and the differences between them? Which of them, In a deep...
13
by: atlaste | last post by:
Hi, I'm currently developing an application that uses a lot of computational power, disk access and memory caching (to be more exact: an information retrieval platform). In these kind of...
0
by: Medhatithi | last post by:
Hi, I have been in several ways benefiited from this site. I would like to share some sql tuning techniques(simple, but effective) with you all. SQL Tuning Tips Oracle Tips Session #6 ...
4
by: Tommy Hayes | last post by:
Hello all, I want to use the SQL Server 2005 Tuning Advisor on our database, and I'm hoping someone here can just confirm the steps for me. We have a 10GB database that has a number of...
3
by: dunleav1 | last post by:
In 9.1 and 9.5 (Linux 64 bit) when a buffer pool is set to self- tuning, how are blocks configured in respect to blocked vs non-blocked when self-tuning is set to on? (ie) I have one bufferpool...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.