Results 1 to 5 of 5

Thread: Java - help with Garbage Collection

  1. #1
    Join Date
    Mar 2010
    Posts
    338

    Java - help with Garbage Collection

    Hello,
    I use an applet ObjectPlanet to generate graphs from data stored in text files. Until today I never had a problem. But now I have several HTML pages containing a large number of graphs that do not appear on my post. Also when I move the java console window on the screen, it gives an effect if the display was not refreshed. Looking into the console, I noticed that there were error messages "java heap space OutOfMemory" I searched on Google and found the Xms Xmx option to increase the memory allocated for java on my computer. However, passing the following command I Help Java.
    Code:
    java-Xmx252m-Xms64m
    Could you tell me where is my error in placing this order to increase the memory allocated? Any help will be great. Thank you.

  2. #2
    Join Date
    Mar 2010
    Posts
    182

    Re: Java - help with Garbage Collection

    The problem is that the command "java" is used to start an application such as Desktop, no applet. If you want to pass these parameters your applet on Windows you must go to the Control Panel icon, Java, Java tab, click on display in the applet parameters, and add -Xms64m-Xmx252m(or more) execution parameters. I do not know the manipulation was done.

  3. #3
    Join Date
    Mar 2010
    Posts
    372

    Re: Java - help with Garbage Collection

    I need someone who uses Red5 and has no problem crash. Basically I use for my demo webcam chat and every day I have to restart Red5 because he plant. At the beginning I used a gentoo with the release of two ovh and I thought the problem was there but I just tested on a debian and I have the same worries.
    The last line of error.log is:
    Code:
    java.lang.OutOfMemoryError: Java heap space
    Someone already had this trouble or could help me?

  4. #4
    Join Date
    Nov 2008
    Posts
    240

    Re: Java - help with Garbage Collection

    You should probably have a memory leak in your code or else the size of the JVM allocated to your server is not large enough. I guess this is the only way to see how you memory is been used.

  5. #5
    Join Date
    Mar 2010
    Posts
    372

    Re: Java - help with Garbage Collection

    I just added the Xmx and Xms on the command line to see if it works better, I expect that this bug. That's not obvious, every time I have to wait 24 hours to know if this bug or not, Memory leak I do not see any thing there.

Similar Threads

  1. How to Force Garbage Collection In Java?
    By Sheenas in forum Software Development
    Replies: 6
    Last Post: 28-04-2011, 01:30 PM
  2. JAVA - What is garbage collection
    By Bhim in forum Software Development
    Replies: 5
    Last Post: 28-04-2011, 01:13 PM
  3. Does C Sharp provide automatic garbage collection ?
    By kALAMATHI in forum Software Development
    Replies: 3
    Last Post: 08-01-2011, 08:33 AM
  4. What is the Garbage Collection in PHP?
    By Emma.J in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 01:40 AM
  5. What are the different collection classes of java
    By Sacchidananda in forum Software Development
    Replies: 3
    Last Post: 24-11-2009, 03:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,844,037.31789 seconds with 16 queries