473,395 Members | 1,458 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,395 software developers and data experts.

Java allocates 200+MB at startup on HP-UX 11.11

Hi,

Does anyone else find this? I'm using Java 1.3.1. Even a 'hello world'
type program allocates about 220M as soon as it starts (according to
'top' that is).

I'm not sure if all JVM instances are sharing one big lump, or if each
is really taking this memory. I'd really appreciate any concrete
answers anyone can give.
Thanks, Dave
Jul 17 '05 #1
2 1951
Dave,

Are you passing any options to the JVM? You can specify an initial
(minimum) heap size and a maximum one, at least on Linux/Windows JVMs.
I think the switch is -Xms256M and -Xmx1024M or something very
similar. That might be why. I haven't heard of multiple JVMs pooling
their resources, they should run independently AFAIK.

Hope that helps--

Michael Scovetta
el********@volcanomail.com (dave) wrote in message news:<57**************************@posting.google. com>...
Hi,

Does anyone else find this? I'm using Java 1.3.1. Even a 'hello world'
type program allocates about 220M as soon as it starts (according to
'top' that is).

I'm not sure if all JVM instances are sharing one big lump, or if each
is really taking this memory. I'd really appreciate any concrete
answers anyone can give.
Thanks, Dave

Jul 17 '05 #2
Hi Michael,

Thanks for your reply.

Are you passing any options to the JVM? You can specify an initial
(minimum) heap size and a maximum one, at least on Linux/Windows JVMs.
I think the switch is -Xms256M and -Xmx1024M or something very
similar. That might be why. I haven't heard of multiple JVMs pooling
their resources, they should run independently AFAIK.


I cited results from the case where I used the default options, which
AFAIK mean 16MB of heap. Setting -Xmx5m or -Xmx100m makes virtually no
difference - it always steals about 200M more than the max heap value
in -Xmx. Setting -Xmx1024M showed a value of 1304MB!!!

I verified that the memory isn't shared around the JVMs by watching
the physical and virtual memory summaries at the head of the 'top'
display. See the following table:
JVMs top SUMMARY
5 "Memory: 433836K (379644K) real, 2159012K (1392276K) virtual,
124488K free Page# 1/13"
4 "Memory: 451564K (410752K) real, 1666308K (1198744K) virtual,
78332K free Page# 1/13"
3 "Memory: 385220K (342764K) real, 1418032K (967408K) virtual,
141136K free Page# 1/13"
2 "Memory: 327068K (286700K) real, 1202192K (769004K) virtual,
196076K free Page# 1/13"
1 "Memory: 268708K (223612K) real, 1036680K (591376K) virtual,
260364K free Page# 1/13"
0 "Memory: 190008K (141388K) real, 764088K (307456K) virtual,
337032K free Page# 1/12"

For each JVM I specified -Xmx48m. Top reported the SIZE value for each
as 250M. I don't fully understand this table, but it does seem
apparent that the 250M is per JVM not shared.

Its a ludicrous and frustrating situation, and I'm find I get
OutOfMemoryError occuring when theres probably loads of wasted memory
on the machine, and this causes me further headaches in my production
system!!! http://forum.java.sun.com/thread.jsp...&thread=507980

Oh well, if anyone can say anything about this, I'd be interested to
hear.

Kind regards,
Dave
Jul 17 '05 #3

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

Similar topics

11
by: Jos? Cardoso | last post by:
Hi, I have developed a java application that interacts with a database. Now i've the folowing problem: - I have a list retrieved from the database(about 200 records); - for each, i do a...
2
by: TR | last post by:
Hi All: I have a simple test GUI that has 2 panels (a left side and a right side), and each panel is displaying an image. The left panel has a hardcoded size of (600,400) using the Dimension()...
0
by: deeptirev | last post by:
Working on a CLI application that uses python package. The memory consumed is around 200 Mb. Heap size allocated is 512 Mb. But still I am getting outofmeomory exception due to which the JVM is...
1
by: lwickland | last post by:
Summary: System.Net.ScatterGatherBuffers.MemoryChuck allocates inordinately large bytes when sending large post data. The following application consumes inordinate quantities of memory. My code...
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
5
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing...
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
0
by: ycinar | last post by:
hey all, i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict.. ...
350
by: Lloyd Bonafide | last post by:
I followed a link to James Kanze's web site in another thread and was surprised to read this comment by a link to a GC: "I can't imagine writing C++ without it" How many of you c.l.c++'ers use...
1
by: amitpathak | last post by:
I am working on a project in which I am required to read a file and load the contents in some JComponent to show it to the users. I was reading the file with the help of stringbuffer/filebuffer...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.