[ 
https://issues.apache.org/jira/browse/TIKA-3632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17463815#comment-17463815
 ] 

Tim Allison edited comment on TIKA-3632 at 12/22/21, 1:58 PM:
--------------------------------------------------------------

Unrelated, but to just to make sure... tika-server 2.x runs by default in the 
old --spawnChild mode.  To set the jvm args in the forked process (which is the 
process doing all the work) via tika-config.xml: {{{}java -jar 
tika-server-standard-2.2.1.jar -c tika-config.xml{}}}....

 
{noformat}
<properties>
  <server>
    <params>
      <forkedJvmArgs>
        <arg>-Xmx2g</arg>
        <arg>-Dlog4j.configurationFile=my-forked-log4j2.xml</arg>
      </forkedJvmArgs>
    </params>
  </server>
</properties> {noformat}
 

I just updated 
[https://cwiki.apache.org/confluence/display/TIKA/TikaServer+in+Tika+2.x] to 
include logging configuration for the forked process.


was (Author: [email protected]):
Unrelated, but to just to make sure... tika-server 2.x runs by default in the 
old --spawnChild mode.  To set the jvm args in the forked process (which is the 
process doing all the work) via tika-config.xml: \{{java -jar 
tika-server-standard-2.2.1.jar -c tika-config.xml}}....

 
{noformat}
<properties>
  <server>
    <params>
      <forkedJvmArgs>
        <arg>-Xmx2g</arg>
        <arg>-Dlog4j.configurationFile=my-forked-log4j2.xml</arg>
      </forkedJvmArgs>
    </params>
  </server>
</properties> {noformat}
 

> Log4j appears to be running in a Servlet environment, but there's no 
> log4j-web module available
> -----------------------------------------------------------------------------------------------
>
>                 Key: TIKA-3632
>                 URL: https://issues.apache.org/jira/browse/TIKA-3632
>             Project: Tika
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 2.2.0
>         Environment: Windows 10
>            Reporter: Josh Burchard
>            Assignee: Konstantin Gribov
>            Priority: Minor
>
> I noticed the following issue when running the Tika server jar and trying to 
> troubleshoot log4j2 (with -Dlog4j2.debug set in the JVM): 
> {{INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.}}
> Is this something that needs to be added when the server jar is built?  It's 
> not _obviously_ impacting me right now but since it's a bit noisy (prints out 
> eight times) I attempted to quash the noise by downloading the 
> log4j-web-2.17.0.jar and add it to my classpath. Unfortunately that did 
> nothing.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to