I would doubt it's a leak in our application since it runs since 15 month on 32bit java without having an OutOfMemory ever. The services are started with following script(s):
more startMessagingAndFlirtContactServiceBundle.sh #!/bin/bash PATH=/usr/local/java/bin:$PATH [ -n "$JACORB" ] || JACORB=/opt/jacorb LIB_PATH=/opt/datingr4/lib CP=`find app -name '*.jar' -printf :%p``find $LIB_PATH -follow -name '*.jar*' -p rintf :%p``find $LIB_PATH -follow -name '*.zip' -printf :%p` java -Xms512m -Xmx512m -Djacorb.config.dir=conf -Djacorb.home=$JACORB -Djava.endorsed.dirs=$JACORB/lib -classpath conf:$JACORB/lib/jacorb.jar$CP -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton de.friendscout.datingr4.startups.StartMessagingAndFlirtContactService Bundle >logs/startlog 2>logs/starterrors & we have up to 5 similar services running on a 16 gig machine which should work. The only memory consuming part are the caches, which are all based on SoftReferences and are guaranteed to be freed by gc before an outofmemory is thrown. ps shows the processes using 10 gig of memory and more on a 64bit machine. Never happend neither on 32bit system nor with 32bit java on 64bit system. regards Leon On 1/17/06, Reynir Hubner <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > How much memory is available on the computer when it throws the > OutOfMemoryError ? > > I am sorry to say, but this sounds like a memory leak in your > application, since the gc should collect loose memory, and not use all > of it, unless it needs to. You will get out of memory errors, going > above what's available on your machine, and also going above -Xmx settings. > > I have not heard of this as being bug. Does your application run better > on 32bit systems ? > Wich version of java do you use ? > > bye, > - -reynir > > > Leon Rosenberg wrote: > > Hi, > > > > sorry for OT, but since there is so much combined Java experience > > here, it's the fastest way of getting an answer. > > > > We have problems with 64bit java (on amd/debian64, with16GB real > > memory). Regardsless how much memory we allow the vm (via -Xmx, -Xms) > > it takes all it can (up to 34gb virtual memory, 16Gb real memory). > > Since we have more than one VM running on the machine (5VMs all below > > 1Gb ram) we are running in an outofmemory after a day of running. > > > > Is this a bug? Are there any new undocumented switches for proper > > memory configuration? > > > > Thanx in advance > > > > regards > > Leon > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.5 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDzMwZ19KgIQihNwgRAhudAKC270/PG+h7DcTLxt8uFpD6+xAj3ACfakuT > L+zdMydPezlmnl0rfAjdi/M= > =jCsN > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]