This content has been marked as final. Show 7 replies
Why are you asking OS specific questions in a Java forum?
Not sure how to draw the line. I am doing some study on the GC. Some GC tuning requires the knowledge of the CPU core, so will it be a hardware or Java question?
Sorry I did not state the OS here earlier. I am using Linux with Java 6. If the OS will swap the memory even I allocate a fixed number of memory to the heap, it will be affected my decision on fine tuning the GC. I think it is a Java question.
How can it be a Java question when it depends on what the OS does?
And why would an OS take any action at all 'if the disk is more busy than Java'? Why would it care about that?
In a way, you are already answered my question. If the OS will not take any memory from the Java heap, it means my problem is I did not allocate enough to the heap. Thanks!
You can control the min and max values which can be allocated by jvm at runtime with JVM parameters -xmx and -xmx.
Your reply is both irrelevant and six months late.