You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Phill Campbell <si...@yahoo.com.INVALID> on 2023/05/05 17:56:50 UTC

Disable all Solr 9.2.1 Logging

I am trying out Solr 9.2.1 to replace a Solr Cloud cluster running 8.2

I only want WARN and ERROR logging. I do not want any GC logging.

With Solr 9.2.1 I am getting INFO level logs for LogUpdateProcessorFactory.
Here is an example of a log entry:

INFO  (qtp1372422140-159) [c:BTS s:shard1 r:core_node10 x:XXX_shard1_replica_n9] o.a.s.u.p.LogUpdateProcessorFactory webapp=/solr path=/update params={update.distrib=FROMLEADER&distrib.from=http://xxx/solr/XXX_shard1_replica_n2/&wt=javabin&version=2}{add=[472702900966 (1765074970479689728)]} 0 0

Here are the JAVA args from the Solr console web page:

 java
-server
-Xms500M
-Xmx500M 
-Xlog:disable 
-DzkClientTimeout=60000
-DzkHost=BLAH,BLAH,BLAH 
-Dsolr.log.dir=/var/log/solr/instancerepl101 
-Djetty.port=12101
-DSTOP.PORT=11101
-DSTOP.KEY=solrrocks 
-Duser.timezone=UTC 
-Djetty.home=/opt/solr-9.2.1/server
-Dsolr.solr.home=/data/solr/instancerepl101/solr/data
-Dsolr.install.dir=/opt/solr-9.2.1
-Dsolr.install.symDir=/opt/solr
-Dsolr.default.confdir=/opt/solr-9.2.1/server/solr/configsets/_default/conf
-Dlog4j.configurationFile=/data/solr/instancerepl101/solr/log4j/log4j2.xml
-Dsolr.jetty.host=0.0.0.0
-Xss256k
-Djava.security.manager
-Djava.security.policy=/opt/solr-9.2.1/server/etc/security.policy
-Djava.security.properties=/opt/solr-9.2.1/server/etc/security.properties
-Dsolr.internal.network.permission=*
-DdisableAdminUI=false
-Dsolr.log.muteconsole
-jar start.jar
--module=http
--module=gzip


Here is how the process was started:



-DSTOP.KEY=solrrocks
-DSTOP.PORT=11001
-DdisableAdminUI=false
-Djava.security.manager
-Djava.security.policy=/opt/solr
-9.2.1/server/etc/security.policy
-Djava.security.properties=/opt/solr
-9.2.1/server/etc/security.properties
-Djetty.home=/opt/solr
-9.2.1/server
-Djetty.port=12001
-Dlog4j.configurationFile=/data/solr/instance01/solr/log4j/log4j2.xml
-Dsolr.default.confdir=/opt/solr
-9.2.1/server/solr/configsets/_default/conf
-Dsolr.install.dir=/opt/solr
-9.2.1
-Dsolr.install.symDir=/opt/solr
-Dsolr.internal.network.permission=*
-Dsolr.jetty.host=0.0.0.0
-Dsolr.jetty.inetaccess.excludes=
-Dsolr.jetty.inetaccess.includes=
-Dsolr.log.dir=/var/log/solr/instance01
-Dsolr.log.muteconsole
-Dsolr.solr.home=/data/solr/instance01/solr/data
-Duser.timezone=UTC
-DzkClientTimeout=60000
-DzkHost=BLAH BLAH BLAH
-XX:+CMSParallelRemarkEnabled
-XX:+CMSScavengeBeforeRemark
-XX:+CrashOnOutOfMemoryError
-XX:+ExplicitGCInvokesConcurrent
-XX:+ParallelRefProcEnabled
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseConcMarkSweepGC
-XX:
-OmitStackTraceInFastThrow
-XX:CMSInitiatingOccupancyFraction=50
-XX:CMSMaxAbortablePrecleanTime=6000
-XX:ConcGCThreads=4
-XX:ErrorFile=/var/log/solr/instance01/jvm_crash_%p.log
-XX:MaxTenuringThreshold=8
-XX:ParallelGCThreads=4
-XX:PretenureSizeThreshold=64m
-XX:SurvivorRatio=4
-XX:TargetSurvivorRatio=90
-Xlog:disable
-Xms500M
-Xmx500M
-Xss256k


How do I stop these logs?
INFO  (qtp1372422140-159) [c:BTS s:shard1 r:core_node10 x:XXX_shard1_replica_n9] o.a.s.u.p.LogUpdateProcessorFactory webapp=/solr path=/update params={update.distrib=FROMLEADER&distrib.from=http://xxx/solr/XXX_shard1_replica_n2/&wt=javabin&version=2}{add=[472702900966 (1765074970479689728)]} 0 0

What do I need to put in the Solr.in.sh or somewhere that will stop LogUpdateProcessorFactory from logging at level INFO?



Re: Disable all Solr 9.2.1 Logging

Posted by Phill Campbell <si...@yahoo.com.INVALID>.
I do confess, I did not put my log4j2.xml file in there! I thought I had. I had not.
Logs are now the same as Solr 8.2 for me.

Once again, user error. :-)

> On May 5, 2023, at 11:56 AM, Phill Campbell <si...@yahoo.com.INVALID> wrote:
> 
> I am trying out Solr 9.2.1 to replace a Solr Cloud cluster running 8.2
> 
> I only want WARN and ERROR logging. I do not want any GC logging.
> 
> With Solr 9.2.1 I am getting INFO level logs for LogUpdateProcessorFactory.
> Here is an example of a log entry:
> 
> INFO  (qtp1372422140-159) [c:BTS s:shard1 r:core_node10 x:XXX_shard1_replica_n9] o.a.s.u.p.LogUpdateProcessorFactory webapp=/solr path=/update params={update.distrib=FROMLEADER&distrib.from=http://xxx/solr/XXX_shard1_replica_n2/&wt=javabin&version=2}{add=[472702900966 (1765074970479689728)]} 0 0
> 
> Here are the JAVA args from the Solr console web page:
> 
> java
> -server
> -Xms500M
> -Xmx500M 
> -Xlog:disable 
> -DzkClientTimeout=60000
> -DzkHost=BLAH,BLAH,BLAH 
> -Dsolr.log.dir=/var/log/solr/instancerepl101 
> -Djetty.port=12101
> -DSTOP.PORT=11101
> -DSTOP.KEY=solrrocks 
> -Duser.timezone=UTC 
> -Djetty.home=/opt/solr-9.2.1/server
> -Dsolr.solr.home=/data/solr/instancerepl101/solr/data
> -Dsolr.install.dir=/opt/solr-9.2.1
> -Dsolr.install.symDir=/opt/solr
> -Dsolr.default.confdir=/opt/solr-9.2.1/server/solr/configsets/_default/conf
> -Dlog4j.configurationFile=/data/solr/instancerepl101/solr/log4j/log4j2.xml
> -Dsolr.jetty.host=0.0.0.0
> -Xss256k
> -Djava.security.manager
> -Djava.security.policy=/opt/solr-9.2.1/server/etc/security.policy
> -Djava.security.properties=/opt/solr-9.2.1/server/etc/security.properties
> -Dsolr.internal.network.permission=*
> -DdisableAdminUI=false
> -Dsolr.log.muteconsole
> -jar start.jar
> --module=http
> --module=gzip
> 
> 
> Here is how the process was started:
> 
> 
> 
> -DSTOP.KEY=solrrocks
> -DSTOP.PORT=11001
> -DdisableAdminUI=false
> -Djava.security.manager
> -Djava.security.policy=/opt/solr
> -9.2.1/server/etc/security.policy
> -Djava.security.properties=/opt/solr
> -9.2.1/server/etc/security.properties
> -Djetty.home=/opt/solr
> -9.2.1/server
> -Djetty.port=12001
> -Dlog4j.configurationFile=/data/solr/instance01/solr/log4j/log4j2.xml
> -Dsolr.default.confdir=/opt/solr
> -9.2.1/server/solr/configsets/_default/conf
> -Dsolr.install.dir=/opt/solr
> -9.2.1
> -Dsolr.install.symDir=/opt/solr
> -Dsolr.internal.network.permission=*
> -Dsolr.jetty.host=0.0.0.0
> -Dsolr.jetty.inetaccess.excludes=
> -Dsolr.jetty.inetaccess.includes=
> -Dsolr.log.dir=/var/log/solr/instance01
> -Dsolr.log.muteconsole
> -Dsolr.solr.home=/data/solr/instance01/solr/data
> -Duser.timezone=UTC
> -DzkClientTimeout=60000
> -DzkHost=BLAH BLAH BLAH
> -XX:+CMSParallelRemarkEnabled
> -XX:+CMSScavengeBeforeRemark
> -XX:+CrashOnOutOfMemoryError
> -XX:+ExplicitGCInvokesConcurrent
> -XX:+ParallelRefProcEnabled
> -XX:+UseCMSInitiatingOccupancyOnly
> -XX:+UseConcMarkSweepGC
> -XX:
> -OmitStackTraceInFastThrow
> -XX:CMSInitiatingOccupancyFraction=50
> -XX:CMSMaxAbortablePrecleanTime=6000
> -XX:ConcGCThreads=4
> -XX:ErrorFile=/var/log/solr/instance01/jvm_crash_%p.log
> -XX:MaxTenuringThreshold=8
> -XX:ParallelGCThreads=4
> -XX:PretenureSizeThreshold=64m
> -XX:SurvivorRatio=4
> -XX:TargetSurvivorRatio=90
> -Xlog:disable
> -Xms500M
> -Xmx500M
> -Xss256k
> 
> 
> How do I stop these logs?
> INFO  (qtp1372422140-159) [c:BTS s:shard1 r:core_node10 x:XXX_shard1_replica_n9] o.a.s.u.p.LogUpdateProcessorFactory webapp=/solr path=/update params={update.distrib=FROMLEADER&distrib.from=http://xxx/solr/XXX_shard1_replica_n2/&wt=javabin&version=2}{add=[472702900966 (1765074970479689728)]} 0 0
> 
> What do I need to put in the Solr.in.sh or somewhere that will stop LogUpdateProcessorFactory from logging at level INFO?
> 
>