aspose file tools *
The moose likes Applets and the fly likes heap size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "heap size" Watch "heap size" New topic
Author

heap size

Ciriel Doos
Greenhorn

Joined: Feb 02, 2005
Posts: 5
Hello all,

I need to guide someone to adjust the heap size on windows.
I'm on linux, so I have no idea where he can set that.
He couldn't find it in the control panel.
Could anyone hold my hand for a bit and tell me where exactly he needs to set it.

His specifications are: windows 98SE, 128 RAM, IE 6, Firefox.

Thanks
Ciriel Doos
Greenhorn

Joined: Feb 02, 2005
Posts: 5
Oh and java 5 jre
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

I'm on Win2k, but it should be similar:
To change the applet runtime settings, click on Start, Settings, Control Panel.
Double-click on the Java Control Panel and click on the Java tab. In the "Java Applet Runtime Settings", click on "View". Enter the heap size using the appropriate syntax in the column marked "Java Runtime Parameters".


[How To Ask Questions On JavaRanch]
Ciriel Doos
Greenhorn

Joined: Feb 02, 2005
Posts: 5
Thanks Joe.

It didn't solve the problem (I even had him set it to -Xmx128M).
What happens is that he opens a java real chat and can type for a while, then his whole system freezes. This somethimes happens immediatly on enetering the channel.
When he wanted to alter the heapsize again, the setting was at -58M (no Xmx infront of it) java seemed to have set it itself in some miraculous way.

In a java dir he found a log with just this in it:
Free memory: 153232
Total memory: 524232

Does this problem sound familiar to anyone or does anyone have any tips/tricks we can try?

Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

Originally posted by Ciriel Doos:

Does this problem sound familiar to anyone or does anyone have any tips/tricks we can try?


Yea, that problem sounds like Win98 operating as it is designed. It is not known for stability and you aren't going to fix operating system freezes by allocating more memory for a Java process. I'd advise your friend to upgrade to a more stable operating system or at least have his computer's RAM checked out. Hardware problems manifest themselves in the strangest ways. I had a bad motherboard which would corrupt the file system on the hard drive at random intervals up to several months. I replaced every piece of that computer one by one but until I replaced the mobo, file corruption.
As for the log file he found in the java directory, was it written by the chat software? It doesn't look unusual. "Free Memory" includes the swap space and applications can grow beyond the size of physical RAM.
I doubt that the problem is with the software, but you could send a support request to the vendor and see what they say.
Ciriel Doos
Greenhorn

Joined: Feb 02, 2005
Posts: 5
Thanks Joe, I was afraid you would say that.

p.s.: this started a few weeks ago, before that he had no problem with it.
Ciriel Doos
Greenhorn

Joined: Feb 02, 2005
Posts: 5
Joe, is there an IRC channel where you all meet so I can get some 1 on 1 on this for a bit?
If you don't want to make that public here, my e-mail is a.v.a@home.nl

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: heap size