You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Deeksha Shrivastava <de...@nagarro.com> on 2022/05/04 08:50:27 UTC

RE: Solr GC Tuning causes issues and doesn't start Solr url

Hi Shawn,

We have java installed on our dev environment/local environment but its giving the same issue on this particular environment as well.

Please help us resolve the same.

Thanks & Regards,

Deeksha Shrivastava
Senior Engineer
deeksha.shrivastava@nagarro.com           
M: +91 7376139953





-----Original Message-----
From: Shawn Heisey <ap...@elyograg.org> 
Sent: 27 April 2022 19:07
To: Deeksha Shrivastava <de...@nagarro.com>
Cc: DG Hempel Sitecore Support <He...@nagarro.com>; users@solr.apache.org
Subject: Re: Solr GC Tuning causes issues and doesn't start Solr url

[Email from a non-Nagarro source: please exercise caution with links and attachments]


On 4/27/22 05:08, Deeksha Shrivastava wrote:
>
> The "etc" itself is included in the setting format. Please refer 
> screenshot below:
>

The screenshot says "set GC_TUNE="-XX:NewRatio=3 -XX:SurvivorRatio=4 etc." ... it does not say what the "etc" is, and we are going to need that information.

>  2. As far as java version is concerned, I mentioned in the previous
>     email stating that, I doubt there is a JRE installed on the
>     machine because when I do a “java -version” on cmd it says “java
>     is not recognized as an internal or external command” which
>     probably means its not installed on that particular server.
>

You can't run Solr without Java.  If there really is no Java installed, then Solr is not going to start, no matter what options you have configured for it.  Maybe you have the JAVA_HOME environment variable defined, which tells the solr start script where to find Java?

Thanks,
Shawn


Re: Solr GC Tuning causes issues and doesn't start Solr url

Posted by David Hastings <ha...@gmail.com>.
on a side note, once you have the JRE figured out, as a rule of thumb I
make my Xms and Xmx the exact same values, and if this is your own metal,
buy more memory and up those values up to 31Gb each

On Wed, May 4, 2022 at 10:15 AM YOGENDRA SONI <so...@gmail.com> wrote:

> If java is installed and java version is 9 or above  you should not
> uncomment gc_log_opts as mentioned in solr.in.cmd. check your dev servers
> java version and comment this option if jdk version is 9 or above.
>
> On Wed, May 4, 2022, 6:09 PM Deeksha Shrivastava <
> deeksha.shrivastava@nagarro.com> wrote:
>
> > Hi Shawn,
> >
> > We have java installed on our dev environment/local environment but its
> > giving the same issue on this particular environment as well.
> >
> > Please help us resolve the same.
> >
> > Thanks & Regards,
> >
> > Deeksha Shrivastava
> > Senior Engineer
> > deeksha.shrivastava@nagarro.com
> > M: +91 7376139953
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Shawn Heisey <ap...@elyograg.org>
> > Sent: 27 April 2022 19:07
> > To: Deeksha Shrivastava <de...@nagarro.com>
> > Cc: DG Hempel Sitecore Support <He...@nagarro.com>;
> > users@solr.apache.org
> > Subject: Re: Solr GC Tuning causes issues and doesn't start Solr url
> >
> > [Email from a non-Nagarro source: please exercise caution with links and
> > attachments]
> >
> >
> > On 4/27/22 05:08, Deeksha Shrivastava wrote:
> > >
> > > The "etc" itself is included in the setting format. Please refer
> > > screenshot below:
> > >
> >
> > The screenshot says "set GC_TUNE="-XX:NewRatio=3 -XX:SurvivorRatio=4
> etc."
> > ... it does not say what the "etc" is, and we are going to need that
> > information.
> >
> > >  2. As far as java version is concerned, I mentioned in the previous
> > >     email stating that, I doubt there is a JRE installed on the
> > >     machine because when I do a “java -version” on cmd it says “java
> > >     is not recognized as an internal or external command” which
> > >     probably means its not installed on that particular server.
> > >
> >
> > You can't run Solr without Java.  If there really is no Java installed,
> > then Solr is not going to start, no matter what options you have
> configured
> > for it.  Maybe you have the JAVA_HOME environment variable defined, which
> > tells the solr start script where to find Java?
> >
> > Thanks,
> > Shawn
> >
> >
>

Re: Solr GC Tuning causes issues and doesn't start Solr url

Posted by YOGENDRA SONI <so...@gmail.com>.
If java is installed and java version is 9 or above  you should not
uncomment gc_log_opts as mentioned in solr.in.cmd. check your dev servers
java version and comment this option if jdk version is 9 or above.

On Wed, May 4, 2022, 6:09 PM Deeksha Shrivastava <
deeksha.shrivastava@nagarro.com> wrote:

> Hi Shawn,
>
> We have java installed on our dev environment/local environment but its
> giving the same issue on this particular environment as well.
>
> Please help us resolve the same.
>
> Thanks & Regards,
>
> Deeksha Shrivastava
> Senior Engineer
> deeksha.shrivastava@nagarro.com
> M: +91 7376139953
>
>
>
>
>
> -----Original Message-----
> From: Shawn Heisey <ap...@elyograg.org>
> Sent: 27 April 2022 19:07
> To: Deeksha Shrivastava <de...@nagarro.com>
> Cc: DG Hempel Sitecore Support <He...@nagarro.com>;
> users@solr.apache.org
> Subject: Re: Solr GC Tuning causes issues and doesn't start Solr url
>
> [Email from a non-Nagarro source: please exercise caution with links and
> attachments]
>
>
> On 4/27/22 05:08, Deeksha Shrivastava wrote:
> >
> > The "etc" itself is included in the setting format. Please refer
> > screenshot below:
> >
>
> The screenshot says "set GC_TUNE="-XX:NewRatio=3 -XX:SurvivorRatio=4 etc."
> ... it does not say what the "etc" is, and we are going to need that
> information.
>
> >  2. As far as java version is concerned, I mentioned in the previous
> >     email stating that, I doubt there is a JRE installed on the
> >     machine because when I do a “java -version” on cmd it says “java
> >     is not recognized as an internal or external command” which
> >     probably means its not installed on that particular server.
> >
>
> You can't run Solr without Java.  If there really is no Java installed,
> then Solr is not going to start, no matter what options you have configured
> for it.  Maybe you have the JAVA_HOME environment variable defined, which
> tells the solr start script where to find Java?
>
> Thanks,
> Shawn
>
>

Re: Solr GC Tuning causes issues and doesn't start Solr url

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/16/22 05:45, Deeksha Shrivastava wrote:
> Even after installing java/jre on the machine, solr GC Tuning setting is not working. Can you please provide some resolution on the same and please let us know what information is needed to investigate this issue further.

You could start with the information already requested, which hasn't 
been sent.

---
Detailed information about how you installed Solr.  This is especially 
important because you are on Windows, and the download does not provide 
a way to install Solr on Windows, you have to figure that out.

Exactly what command is being used to start Solr.  This may need further 
clarification later.

Any changes you have made to any of the scripts included with Solr.  It 
will be particularly important that we see the WHOLE solr.in.cmd file, 
especially the part that you reduced to "etc" in your screenshot.

Java vendor and version.  The original message indicated Solr was 
version 7.2.1.  If that has changed, let us know what version it is now.
---

Also, look for the solr console log and see if there is anything 
relevant in that.  If Java never started, any information about what 
went wrong is likely to be in that log.

Thanks,
Shawn


Re: Solr GC Tuning causes issues and doesn't start Solr url

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/24/22 06:17, Deeksha Shrivastava wrote:
> Solr set up was done long time back. Currently Solr is deployed on our QA and PROD servers, and our website's search functionality is working fine as of now.
>
> The Solr version installed is 7.2.1, previously java/jre was not installed but we did the installation of JRE 8 on the server.
>
> As per our understanding, no major changes were made in the script included with Solr.  We are attaching solr.in.cmd file for your reference.
>
> Attaching the solr.in.cmd and solr.log file.
>
> Please do let us know if we can provide any other configuration file for further reference.\

The attachment you sent hit my scanner and got quarantined because it 
included an executable file -- solr.in.cmd.  It appears that the message 
never made it to the mailing list at all, likely because the zipfile 
includes a banned type of file.  I released the message from quarantine 
on my server so I could read it. Attachments sent to the mailing list 
almost never work -- I only got it because you sent the message directly 
to me as well as the list.

It appears that you really do actually have the string "etc." configured 
on the GC_TUNE variable in solr.in.cmd.  That's not going to work, and 
probably would cause Solr to not start, because the Java commandline 
would be invalid.  The variable is commented in the file you sent.

The log file contains two error messages that appear to be the same.  
You tried indexing a document that was incompatible with your schema.  
This is the relevant part of the error message: "multiple values 
encountered for non multiValued field type_t_zh".  If you are going to 
index multiple values in a field, the field MUST be multiValued, or Solr 
will throw that error.

Thanks,
Shawn


Re: Solr GC Tuning causes issues and doesn't start Solr url

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/20/22 01:46, Ruchi Gupta wrote:
> Even after installing java/jre on the machine, solr GC Tuning setting is not working. We tried to enable it but then our solr service is not getting start. Can you please provide some resolution on the same and please let us know what information is needed to investigate this issue further? Please check the below mail chain for more details.

Your message didn't make it to the list.  I would imagine that's because 
you're probably not subscribed to the list.

I have explained at least twice exactly what information is required.

Repeating what I said most recently:

-----------------

We need more information to be able to help.  This will be the starting 
point:

Detailed information about how you installed Solr.  This is especially 
important because you are on Windows, and the download does not provide 
a way to install Solr on Windows, you have to figure that out.

Exactly what command is being used to start Solr.

Any changes you have made to any of the scripts included with Solr.  It 
will be particularly important that we see the WHOLE solr.in.cmd file, 
especially the part that you reduced to "etc" in your screenshot.

Java vendor and version.  The original message indicated Solr was 
version 7.2.1.  If that has changed, let us know what version it is now.

-----------------

Additional: One of the logfiles that Solr writes is a console log.  When 
Java refuses to start, there will generally be some kind of error 
message in that logfile.

Thanks,
Shawn

RE: Solr GC Tuning causes issues and doesn't start Solr url

Posted by Ruchi Gupta <ru...@nagarro.com>.
Hi Team,

Even after installing java/jre on the machine, solr GC Tuning setting is not working. We tried to enable it but then our solr service is not getting start. Can you please provide some resolution on the same and please let us know what information is needed to investigate this issue further? Please check the below mail chain for more details.

Regards,
Ruchi Gupta


-----Original Message-----
From: Deeksha Shrivastava <de...@nagarro.com> 
Sent: 16 May 2022 17:16
To: Shawn Heisey <ap...@elyograg.org>
Cc: users@solr.apache.org; DG Hempel Sitecore Support <He...@nagarro.com>
Subject: RE: Solr GC Tuning causes issues and doesn't start Solr url

Hi Shawn,

Even after installing java/jre on the machine, solr GC Tuning setting is not working. Can you please provide some resolution on the same and please let us know what information is needed to investigate this issue further.


Thanks & Regards,

Deeksha Shrivastava
Senior Engineer
deeksha.shrivastava@nagarro.com
M: +91 7376139953





-----Original Message-----
From: Deeksha Shrivastava
Sent: 04 May 2022 14:20
To: Shawn Heisey <ap...@elyograg.org>
Cc: users@solr.apache.org
Subject: RE: Solr GC Tuning causes issues and doesn't start Solr url

Hi Shawn,

We have java installed on our dev environment/local environment but its giving the same issue on this particular environment as well.

Please help us resolve the same.

Thanks & Regards,

Deeksha Shrivastava
Senior Engineer
deeksha.shrivastava@nagarro.com
M: +91 7376139953





-----Original Message-----
From: Shawn Heisey <ap...@elyograg.org>
Sent: 27 April 2022 19:07
To: Deeksha Shrivastava <de...@nagarro.com>
Cc: DG Hempel Sitecore Support <He...@nagarro.com>; users@solr.apache.org
Subject: Re: Solr GC Tuning causes issues and doesn't start Solr url

[Email from a non-Nagarro source: please exercise caution with links and attachments]


On 4/27/22 05:08, Deeksha Shrivastava wrote:
>
> The "etc" itself is included in the setting format. Please refer 
> screenshot below:
>

The screenshot says "set GC_TUNE="-XX:NewRatio=3 -XX:SurvivorRatio=4 etc." ... it does not say what the "etc" is, and we are going to need that information.

>  2. As far as java version is concerned, I mentioned in the previous
>     email stating that, I doubt there is a JRE installed on the
>     machine because when I do a “java -version” on cmd it says “java
>     is not recognized as an internal or external command” which
>     probably means its not installed on that particular server.
>

You can't run Solr without Java.  If there really is no Java installed, then Solr is not going to start, no matter what options you have configured for it.  Maybe you have the JAVA_HOME environment variable defined, which tells the solr start script where to find Java?

Thanks,
Shawn


RE: Solr GC Tuning causes issues and doesn't start Solr url

Posted by Deeksha Shrivastava <de...@nagarro.com>.
Hi Shawn,

Even after installing java/jre on the machine, solr GC Tuning setting is not working. Can you please provide some resolution on the same and please let us know what information is needed to investigate this issue further.


Thanks & Regards,

Deeksha Shrivastava
Senior Engineer
deeksha.shrivastava@nagarro.com           
M: +91 7376139953





-----Original Message-----
From: Deeksha Shrivastava 
Sent: 04 May 2022 14:20
To: Shawn Heisey <ap...@elyograg.org>
Cc: users@solr.apache.org
Subject: RE: Solr GC Tuning causes issues and doesn't start Solr url

Hi Shawn,

We have java installed on our dev environment/local environment but its giving the same issue on this particular environment as well.

Please help us resolve the same.

Thanks & Regards,

Deeksha Shrivastava
Senior Engineer
deeksha.shrivastava@nagarro.com
M: +91 7376139953





-----Original Message-----
From: Shawn Heisey <ap...@elyograg.org>
Sent: 27 April 2022 19:07
To: Deeksha Shrivastava <de...@nagarro.com>
Cc: DG Hempel Sitecore Support <He...@nagarro.com>; users@solr.apache.org
Subject: Re: Solr GC Tuning causes issues and doesn't start Solr url

[Email from a non-Nagarro source: please exercise caution with links and attachments]


On 4/27/22 05:08, Deeksha Shrivastava wrote:
>
> The "etc" itself is included in the setting format. Please refer 
> screenshot below:
>

The screenshot says "set GC_TUNE="-XX:NewRatio=3 -XX:SurvivorRatio=4 etc." ... it does not say what the "etc" is, and we are going to need that information.

>  2. As far as java version is concerned, I mentioned in the previous
>     email stating that, I doubt there is a JRE installed on the
>     machine because when I do a “java -version” on cmd it says “java
>     is not recognized as an internal or external command” which
>     probably means its not installed on that particular server.
>

You can't run Solr without Java.  If there really is no Java installed, then Solr is not going to start, no matter what options you have configured for it.  Maybe you have the JAVA_HOME environment variable defined, which tells the solr start script where to find Java?

Thanks,
Shawn


Re: Solr GC Tuning causes issues and doesn't start Solr url

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/4/22 02:50, Deeksha Shrivastava wrote:
> We have java installed on our dev environment/local environment but its giving the same issue on this particular environment as well.

We need more information to be able to help.  This will be the starting 
point:

Detailed information about how you installed Solr.  This is especially 
important because you are on Windows, and the download does not provide 
a way to install Solr on Windows, you have to figure that out.

Exactly what command is being used to start Solr.

Any changes you have made to any of the scripts included with Solr.  It 
will be particularly important that we see the WHOLE solr.in.cmd file, 
especially the part that you reduced to "etc" in your screenshot.

Java vendor and version.  The original message indicated Solr was 
version 7.2.1.  If that has changed, let us know what version it is now.

Thanks,
Shawn