The moose likes Performance and the fly likes specifying maximum heap size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "specifying maximum heap size" Watch "specifying maximum heap size" New topic
Author

specifying maximum heap size

Karl Rearden
Greenhorn

Joined: Feb 20, 2003
Posts: 3
I am using Sun's jdk1.4.1_01 on a Linux box with 4GB RAM, and I cannot start java with a heap larger than 1.7GB without getting a memory error.
I searched around and saw something hinting that the OS swap space needs to be at least as large as the max heap size. I don't know if this is true, but I added a 2GB swap file to complement the 2GB swap partition there already, but it didn't get me anywhere.
What am I missing?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
alpha foo,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Karl Rearden
Greenhorn

Joined: Feb 20, 2003
Posts: 3
Okie dokie, name changed!
If anyone can help me out with my question above, I'd appreciate it.
Thanks,
Karl
 
 
subject: specifying maximum heap size
 
Threads others viewed
JVM memory limitation
Java performace issue in 32 bit Red Hat
Max Heap size on Websphere 5
increasing heap size in jboss
INIT: id "x" respwaning too fast- disabled for 5 minites
developer file tools