You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bruno Mannina <bm...@free.fr> on 2015/05/04 11:06:37 UTC

Solr 5.0, Ubuntu 14.04, SOLR_JAVA_MEM problem

Dear Solr Community,

I have a recent computer with 8Go RAM, I installed Ubuntu 14.04 and SOLR 
5.0, Java 7
This is a brand new installation.

all work fine but I would like to increase the JAVA_MEM_SOLR (40% of 
total RAM available).
So I edit the bin/solr.in.sh

# Increase Java Min/Max Heap as needed to support your indexing / query 
needs
SOLR_JAVA_MEM="-Xms3g –Xmx3g -XX:MaxPermSize=512m -XX:PermSize=512m"

but with this param, the solr server can't be start, I use:
bin/solr start

Do you have an idea of the problem ?

Thanks a lot for your comment,
Bruno

---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com


Re: Solr 5.0, Ubuntu 14.04, SOLR_JAVA_MEM problem

Posted by Bruno Mannina <bm...@free.fr>.
ok, I note all these information, thanks !

I will update if it's needed. 2go seems to be ok.

Le 04/05/2015 18:46, Shawn Heisey a écrit :
> On 5/4/2015 10:28 AM, Bruno Mannina wrote:
>> solr@linux:~$ java -version
>> java version "1.7.0_79"
>> OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
>> OpenJDK Server VM (build 24.79-b02, mixed mode)
>> solr@linux:~$
>>
>> solr@linux:~$ uname -a
>> Linux linux 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:11:46 UTC
>> 2015 i686 i686 i686 GNU/Linux
>> solr@linux:~$
> Both Linux and Java are 32-bit.  For linux, I know this because your
> arch is "i686", which means it is coded for a newer generation 32-bit
> CPU.  You can't be running a 64-bit Java, and the Java version confirms
> that because it doesn't contain "64-bit".
>
> Run this command:
>
> cat /proc/cpuinfo
>
> If the "flags" on the CPU contain the string "lm" (long mode), then your
> CPU is capable of running a 64-bit (sometimes known as amd64 or x86_64)
> version of Linux, and a 64-bit Java.  You will need to re-install both
> Linux and Java to get this capability.
>
> Here's "uname -a" from a 64-bit version of Ubuntu:
>
> Linux lb1 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:08:34 UTC 2015
> x86_64 x86_64 x86_64 GNU/Linux
>
> Since you are running 5.0, I would recommend Oracle Java 8.
>
> http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
>
> Thanks,
> Shawn
>
>
>


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com


Re: Solr 5.0, Ubuntu 14.04, SOLR_JAVA_MEM problem

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/4/2015 10:28 AM, Bruno Mannina wrote:
> solr@linux:~$ java -version
> java version "1.7.0_79"
> OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
> OpenJDK Server VM (build 24.79-b02, mixed mode)
> solr@linux:~$
>
> solr@linux:~$ uname -a
> Linux linux 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:11:46 UTC
> 2015 i686 i686 i686 GNU/Linux
> solr@linux:~$

Both Linux and Java are 32-bit.  For linux, I know this because your
arch is "i686", which means it is coded for a newer generation 32-bit
CPU.  You can't be running a 64-bit Java, and the Java version confirms
that because it doesn't contain "64-bit".

Run this command:

cat /proc/cpuinfo

If the "flags" on the CPU contain the string "lm" (long mode), then your
CPU is capable of running a 64-bit (sometimes known as amd64 or x86_64)
version of Linux, and a 64-bit Java.  You will need to re-install both
Linux and Java to get this capability.

Here's "uname -a" from a 64-bit version of Ubuntu:

Linux lb1 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:08:34 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux

Since you are running 5.0, I would recommend Oracle Java 8.

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

Thanks,
Shawn


Re: Solr 5.0, Ubuntu 14.04, SOLR_JAVA_MEM problem

Posted by Bruno Mannina <bm...@free.fr>.
Shaun thanks a lot for this comment,

So, I have this information, no information about 32 or 64 bits...

solr@linux:~$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
OpenJDK Server VM (build 24.79-b02, mixed mode)
solr@linux:~$

solr@linux:~$ uname -a
Linux linux 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:11:46 UTC 
2015 i686 i686 i686 GNU/Linux
solr@linux:~$

I need to install a new version of Java ? I just install my ubuntu since 
one week :)
updates are up to date.

Le 04/05/2015 17:23, Shawn Heisey a écrit :
> On 5/4/2015 9:09 AM, Bruno Mannina wrote:
>> Yes ! it works !!!
>>
>> Scott perfect !!!!
>>
>> For my config 3g do not work, but 2g yes !
> If you can't start Solr with a 3g heap, chances are that you are running
> a 32-bit version of Java.  A 32-bit Java cannot go above a 2GB heap.  A
> 64-bit JVM requires a 64-bit operating system, which requires a 64-bit
> CPU.  Since 2006, Intel has only been providing 64-bit chips to the
> consumer market, and getting a 32-bit chip in a new computer has gotten
> extremely difficult.  The server market has had only 64-bit chips from
> Intel since 2005.  I am not sure what those dates look like for AMD
> chips, but it is probably similar.
>
> Running "java -version" should give you enough information to determine
> whether your Java is 32-bit or 64-bit.  This is the output from that
> command on a Linux machine that is running a 64-bit JVM from Oracle:
>
> root@idxa4:~# java -version
> java version "1.8.0_45"
> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
>
> If you are running Solr on Linux, then the output of "uname -a" should
> tell you whether your operating system is 32 or 64 bit.
>
> Thanks,
> Shawn
>
>
>


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com


Re: Solr 5.0, Ubuntu 14.04, SOLR_JAVA_MEM problem

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/4/2015 9:09 AM, Bruno Mannina wrote:
> Yes ! it works !!!
>
> Scott perfect !!!!
>
> For my config 3g do not work, but 2g yes !

If you can't start Solr with a 3g heap, chances are that you are running
a 32-bit version of Java.  A 32-bit Java cannot go above a 2GB heap.  A
64-bit JVM requires a 64-bit operating system, which requires a 64-bit
CPU.  Since 2006, Intel has only been providing 64-bit chips to the
consumer market, and getting a 32-bit chip in a new computer has gotten
extremely difficult.  The server market has had only 64-bit chips from
Intel since 2005.  I am not sure what those dates look like for AMD
chips, but it is probably similar.

Running "java -version" should give you enough information to determine
whether your Java is 32-bit or 64-bit.  This is the output from that
command on a Linux machine that is running a 64-bit JVM from Oracle:

root@idxa4:~# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

If you are running Solr on Linux, then the output of "uname -a" should
tell you whether your operating system is 32 or 64 bit.

Thanks,
Shawn


Re: Solr 5.0, Ubuntu 14.04, SOLR_JAVA_MEM problem

Posted by Bruno Mannina <bm...@free.fr>.
Yes ! it works !!!

Scott perfect !!!!

For my config 3g do not work, but 2g yes !

Thanks

Le 04/05/2015 16:50, Scott Dawson a écrit :
> Bruno,
> You have the wrong kind of dash (a long dash) in front of the Xmx flag.
> Could that be causing a problem?
>
> Regards,
> Scott
>
> On Mon, May 4, 2015 at 5:06 AM, Bruno Mannina <bm...@free.fr> wrote:
>
>> Dear Solr Community,
>>
>> I have a recent computer with 8Go RAM, I installed Ubuntu 14.04 and SOLR
>> 5.0, Java 7
>> This is a brand new installation.
>>
>> all work fine but I would like to increase the JAVA_MEM_SOLR (40% of total
>> RAM available).
>> So I edit the bin/solr.in.sh
>>
>> # Increase Java Min/Max Heap as needed to support your indexing / query
>> needs
>> SOLR_JAVA_MEM="-Xms3g –Xmx3g -XX:MaxPermSize=512m -XX:PermSize=512m"
>>
>> but with this param, the solr server can't be start, I use:
>> bin/solr start
>>
>> Do you have an idea of the problem ?
>>
>> Thanks a lot for your comment,
>> Bruno
>>
>> ---
>> Ce courrier électronique ne contient aucun virus ou logiciel malveillant
>> parce que la protection avast! Antivirus est active.
>> http://www.avast.com
>>
>>


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com


Re: Solr 5.0, Ubuntu 14.04, SOLR_JAVA_MEM problem

Posted by Scott Dawson <sc...@gmail.com>.
Bruno,
You have the wrong kind of dash (a long dash) in front of the Xmx flag.
Could that be causing a problem?

Regards,
Scott

On Mon, May 4, 2015 at 5:06 AM, Bruno Mannina <bm...@free.fr> wrote:

> Dear Solr Community,
>
> I have a recent computer with 8Go RAM, I installed Ubuntu 14.04 and SOLR
> 5.0, Java 7
> This is a brand new installation.
>
> all work fine but I would like to increase the JAVA_MEM_SOLR (40% of total
> RAM available).
> So I edit the bin/solr.in.sh
>
> # Increase Java Min/Max Heap as needed to support your indexing / query
> needs
> SOLR_JAVA_MEM="-Xms3g –Xmx3g -XX:MaxPermSize=512m -XX:PermSize=512m"
>
> but with this param, the solr server can't be start, I use:
> bin/solr start
>
> Do you have an idea of the problem ?
>
> Thanks a lot for your comment,
> Bruno
>
> ---
> Ce courrier électronique ne contient aucun virus ou logiciel malveillant
> parce que la protection avast! Antivirus est active.
> http://www.avast.com
>
>