Re: [CentOS] Java/Solr - Could not reserve enough space for object heap.
On Thu, Jul 04, 2013 at 09:54:49AM +0200, Rafał Radecki wrote: Hi All. # cat /etc/redhat-release CentOS release 6.2 (Final) you should upgrade to 6.4... ... I have a solr installation which is invoked: /usr/bin/java -Xms25g -Xmx25g -DSTOP.PORT=8079 -DSTOP.KEY=mustard -Dsolr.solr.home=multicore -jar start.jar After start/when the java process is running: # free -m total used free sharedbuffers cached Mem: 32093 23975 8118 0189 5736 -/+ buffers/cache: 18049 14043 Swap: 4095 22 4073 So the machine has 32GB of RAM, and java process needs 25GB to start. When I make a restart the java process dies and in log: how do you restart? are you sure that your java is stopped before starting it again? 25G x2 32(ram) + 4(swap) until the 1st java instance is actually stopped. Tru -- Tru Huynh (mirrors, CentOS i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B pgpBQoHdwn49I.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Java/Solr - Could not reserve enough space for object heap.
Why 25G x2 - -Xms minimal, -Xmx maximal? 2013/7/4 Tru Huynh t...@centos.org On Thu, Jul 04, 2013 at 09:54:49AM +0200, Rafał Radecki wrote: Hi All. # cat /etc/redhat-release CentOS release 6.2 (Final) you should upgrade to 6.4... ... I have a solr installation which is invoked: /usr/bin/java -Xms25g -Xmx25g -DSTOP.PORT=8079 -DSTOP.KEY=mustard -Dsolr.solr.home=multicore -jar start.jar After start/when the java process is running: # free -m total used free sharedbuffers cached Mem: 32093 23975 8118 0189 5736 -/+ buffers/cache: 18049 14043 Swap: 4095 22 4073 So the machine has 32GB of RAM, and java process needs 25GB to start. When I make a restart the java process dies and in log: how do you restart? are you sure that your java is stopped before starting it again? 25G x2 32(ram) + 4(swap) until the 1st java instance is actually stopped. Tru -- Tru Huynh (mirrors, CentOS i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Java/Solr - Could not reserve enough space for object heap.
stop/start, I use restart which is stop and start: start () { echo -n $Starting $prog: if [ -e /var/lock/subsys/solr ]; then echo -n $cannot start solr: solr is already running.; failure $cannot start solr: solr already running.; echo return 1 fi cd $SOLR_DIR daemon $JAVA $JAVA_OPTIONS 21 | /usr/bin/logger -t 'solr' -p info -- RETVAL=$? echo [ $RETVAL = 0 ] touch /var/lock/subsys/solr return $RETVAL } stop () { echo -n $Stopping $prog: if [ ! -e /var/lock/subsys/solr ]; then echo -n $cannot stop solr: solr is not running. failure $cannot stop solr: solr is not running. echo return 1; fi cd $SOLR_DIR $JAVA $JAVA_OPTIONS_STOP --stop RETVAL=$? sleep 2 echo [ $RETVAL -eq 0 ] rm -f /var/lock/subsys/solr return $RETVAL } 2013/7/4 Rafał Radecki radecki.ra...@gmail.com Why 25G x2 - -Xms minimal, -Xmx maximal? 2013/7/4 Tru Huynh t...@centos.org On Thu, Jul 04, 2013 at 09:54:49AM +0200, Rafał Radecki wrote: Hi All. # cat /etc/redhat-release CentOS release 6.2 (Final) you should upgrade to 6.4... ... I have a solr installation which is invoked: /usr/bin/java -Xms25g -Xmx25g -DSTOP.PORT=8079 -DSTOP.KEY=mustard -Dsolr.solr.home=multicore -jar start.jar After start/when the java process is running: # free -m total used free sharedbuffers cached Mem: 32093 23975 8118 0189 5736 -/+ buffers/cache: 18049 14043 Swap: 4095 22 4073 So the machine has 32GB of RAM, and java process needs 25GB to start. When I make a restart the java process dies and in log: how do you restart? are you sure that your java is stopped before starting it again? 25G x2 32(ram) + 4(swap) until the 1st java instance is actually stopped. Tru -- Tru Huynh (mirrors, CentOS i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos