On Tue, Oct 18, 2022 at 11:28 PM Kaushal Shriyan <[email protected]> wrote:
> > > On Fri, Oct 14, 2022 at 11:13 PM Kaushal Shriyan <[email protected]> > wrote: > >> >> >> On Fri, Oct 14, 2022 at 12:19 AM Kaushal Shriyan < >> [email protected]> wrote: >> >>> >>> >>> On Wed, Oct 12, 2022 at 9:24 PM Kaushal Shriyan < >>> [email protected]> wrote: >>> >>>> Hi, >>>> >>>> I am running Apache Solr 8.11.2 on CentOS Linux release 7.9.2009 (Core) >>>> trying to modify /opt/solr/server/etc/jetty.xml to set the Attribute >>>> *maxFormContentSize* as per the below path >>>> >>>> [root@etc]# ls -l >>>> total 76 >>>> -rw-r--r-- 1 root root 1950 May 13 03:21 jetty-gzip.xml >>>> -rw-r--r-- 1 root root 3630 May 13 03:21 jetty-https8.xml >>>> -rw-r--r-- 1 root root 3698 Oct 12 17:54 jetty-https.xml >>>> -rw-r--r-- 1 root root 2686 Oct 12 17:53 jetty-http.xml >>>> -rw-r--r-- 1 root root 1850 May 13 03:21 jetty-requestlog.xml >>>> -rw-r--r-- 1 root root 2248 May 13 03:21 jetty-ssl.xml >>>> -rw-r--r-- 1 root root 11646 Oct 12 17:51 jetty.xml >>>> -rw-r--r-- 1 root root 11823 May 13 03:21 security.policy >>>> -rw-r--r-- 1 root root 1279 May 13 03:21 security.properties >>>> -rw-r--r-- 1 root root 24426 May 13 03:21 webdefault.xml >>>> [root@etc]# >>>> >>>> I am adding the below attribute in /opt/solr/server/etc/jetty.xml to >>>> increase maxFormContentSize >>>> >>>> <Call name="setAttribute"> >>>> <Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg> >>>> <Arg>1500000</Arg> >>>> </Call> >>>> >>>> When i restart the solr service it fails with the below message. >>>> >>>> [root@etc]# service solr restart >>>> Sending stop command to Solr running on port 8983 ... waiting up to 180 >>>> seconds to allow Jetty process 4311 to stop gracefully. >>>> Waiting up to 180 seconds to see Solr running on port 8983 [\] Still >>>> not seeing Solr listening on 8983 after 180 seconds! >>>> 2022-10-12 10:28:25.469 INFO (main) [ ] o.e.j.u.log Logging >>>> initialized @2083ms to org.eclipse.jetty.util.log.Slf4jLog >>>> 2022-10-12 10:28:25.601 WARN (main) [ ] o.e.j.x.XmlConfiguration >>>> Config error at <Arg name="threadpool"> >>>> <New id="threadpool" >>>> class="com.codahale.metrics.jetty9.InstrumentedQueuedThreadPool"><Arg >>>> name="registry"> >>>> <Call id="solrJettyMetricRegistry" name="getOrCreate" >>>> class="com.codahale.metrics.SharedMetricRegistries"><Arg>solr.jetty</Arg></Call> >>>> </Arg></New> >>>> </Arg> >>>> 2022-10-12 10:28:25.601 WARN (main) [ ] o.e.j.x.XmlConfiguration => >>>> java.lang.IllegalStateException: Element 'Arg' not skipped >>>> at >>>> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:507) >>>> java.lang.IllegalStateException: Element 'Arg' not skipped >>>> at >>>> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:507) >>>> ~[jetty-xml-9.4.44.v20210927.jar:9.4.44.v20210927] >>>> at >>>> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:468) >>>> ~[jetty-xml-9.4.44.v20210927.jar:9.4.44.v20210927] >>>> at >>>> org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:380) >>>> ~[jetty-xml-9.4.44.v20210927.jar:9.4.44.v20210927] >>>> at >>>> org.eclipse.jetty.xml.XmlConfiguration.lambda$main$3(XmlConfiguration.java:1893) >>>> ~[jetty-xml-9.4.44.v20210927.jar:9.4.44.v20210927] >>>> at java.security.AccessController.doPrivileged(Native Method) ~[?:?] >>>> at >>>> org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1857) >>>> ~[jetty-xml-9.4.44.v20210927.jar:9.4.44.v20210927] >>>> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> ~[?:?] >>>> at >>>> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >>>> ~[?:?] >>>> at >>>> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>> ~[?:?] >>>> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] >>>> at org.eclipse.jetty.start.Main.invokeMain(Main.java:218) >>>> ~[start.jar:9.4.44.v20210927] >>>> at org.eclipse.jetty.start.Main.start(Main.java:491) >>>> ~[start.jar:9.4.44.v20210927] >>>> at org.eclipse.jetty.start.Main.main(Main.java:77) >>>> ~[start.jar:9.4.44.v20210927] >>>> [root@etc]# >>>> >>>> Am I missing anything? Please guide me to modify maxFormContentSize in >>>> solr service. Thanks in advance. >>>> >>>> Best Regards, >>>> >>>> Kaushal >>>> >>> >>> Hi, >>> >>> Checking in again if someone can pitch in for my earlier post to this >>> mailing list. Thanks in advance. >>> >>> Best Regards, >>> >>> Kaushal >>> >> >> Hi, >> >> I have configured the below settings in /opt/solr/server/etc/jetty.xml >> >> <New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration"> >> <Set name="secureScheme">https</Set> >> <Set name="securePort"><Property name="solr.jetty.secure.port" >> default="8443" /></Set> >> <Set name="outputBufferSize"><Property >> name="solr.jetty.output.buffer.size" default="*62768*" /></Set> >> <Set name="outputAggregationSize"><Property >> name="solr.jetty.output.aggregation.size" default="*81920*" /></Set> >> <Set name="requestHeaderSize"><Property >> name="solr.jetty.request.header.size" default="*81920*" /></Set> >> <Set name="responseHeaderSize"><Property >> name="solr.jetty.response.header.size" default="*81920*" /></Set> >> <Set name="sendServerVersion"><Property >> name="solr.jetty.send.server.version" default="false" /></Set> >> <Set name="sendDateHeader"><Property >> name="solr.jetty.send.date.header" default="false" /></Set> >> client_loop: send disconnect: Broken >> pipee="solr.jetty.header.cache.size" default="*5120*" /></Set> >> <Set name="delayDispatchUntilContent"><Property >> name="solr.jetty.delayDispatchUntilContent" default="false"/></Set> >> >> Please comment if max content size in the request configured as above is >> the right way to implement it. Thanks in advance. >> >> Best Regards, >> >> Kaushal >> > > Hi, > > Checking in again if someone can pitch in for my earlier post to this > mailing list. Thanks in advance. > > Best Regards, > > Kaushal > Hi, I will appreciate it if someone can pitch in for my earlier post to this mailing list and need guidance in this regard. I look forward to hearing from you. Thanks in advance. Best Regards, Kaushal
