Skip to main content

Please, how I use Incremental Gargabe with hugh memory (>3 Gb) ?

3 replies [Last post]
Joined: 2005-07-10
Points: 0

Please, somebody help me !

I'm trying to run JVM with Incremental Garbage Collection
and 4/8Gb RAM memory.

When start java receives this error:

Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
+ java -server -d64 -ms1024m -mx3550m -verbose:gc -Xincgc -
DORBlaiMaxIdle=120 -DEnv=http-xxxxxxx -
DORBagentAddr=xxxxxxx -DORBagentPort=12519 -Ddomain.url=-
Ddomain.url=jdbc:oracle:thin:@lhost1:1521:eexp -
Ddomain.username=xxxxxxxxx -Ddomain.password=xxxxxxxxx -
DLogController.enviroment=Producao -
DLogController.home=/xxxxxxxxxxxx StartAllComponents
prdc-db-01 [root] #
Exception java.lang.OutOfMemoryError: requested -307200
bytes for CarTableDesc in /export1/jdk142-
update/ws/fcs/hotspot/src/share/vm/memory/cartable.cpp. Out
of swap space?

I'm trying to use this string:

java -server -d64 -ms1024m -mx3550m -verbose:gc -Xincgc


java -server -Xms6g -Xmx8g -d64 -verbose:gc -Xincgc ...

How can I use Incremental GC with hugh memory 8/12Gb ?
Is it possible ?

Thanks a lot,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-10-27
Points: 0

The -Xincgc collector in JDK-1.4.2 (also known as -XX:+UseTrainGC) is not "64-bit clean", so you can't use it in the 64-bit JVM (e.g., with -d64). That limits you to heaps less than 4GB (less than 2GB on many operating systems).

You could move to JDK-1.5.0, where -Xincgc invokes the concurrent mark-sweep collector (also known as -XX:+UseConcMarkSweepGC). Or you could try the -XX:+UseConcMarkSweepGC in the JDK-1.4.2 JVM. That had some bugs (fixed by JDK-1.5.0), but it might work for you.

If you need help tuning the -XX:+UseConcMarkSweepGC in JDK-1.5.0, just ask.

Joined: 2005-07-10
Points: 0


thanks for your reply.
It helped me very.

I'll try to use UseConcMarkSweep option.

Best regards,

Joined: 2005-04-25
Points: 0

For tuning help with, and background about, +UseConcMarkSweepGC
please consult the documentation available at: