473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 6552
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.