Tomcat 9.0.24 - cors.allowed.origins wildcard not working for me

2020-04-01 Thread Eric Shen
I want to add a XMLHttpRequest GET call from a SharePoint app to a Tomcat server. The challenge is the SharePoint app URL contain the AppID which can change if the app is reinstalled.  For now, I want to have the Tomcat server service all requests regardless of the origin.  (I'll be adding a

Re: How to increase Memory available to Tomcat?

2020-04-01 Thread Manuel Dominguez Sarmiento
Using HugePages and -XX:+AlwaysPreTouch makes sure that all memory is allocated immediately. We've been using this for years to make sure our Java processes get access to all memory that would eventually be needed by the heap, metaspace, etc. Especially in order to avoid the effects of any

Re: [OP but IMPORTANT!] How to increase Memory available to Tomcat?

2020-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Calder, On 4/1/20 08:52, calder wrote: > (BTW, I hope you're not running TC as the root user. I see > references to the root user in your CLI output) Great catch! Jim, the first think you should do without doing anything else is stop running at

Re: How to increase Memory available to Tomcat?

2020-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jim, On 3/31/20 23:57, o haya wrote: > I think I figured out what is going on. I think that the > parameters were working all right, but the memory that is shown by > the "free" command isn't corresponding to the JVM memory. > > I put together a

Re: How to increase Memory available to Tomcat?

2020-04-01 Thread calder
On Tue, Mar 31, 2020 at 10:57 PM o haya wrote: > I think I figured out what is going on. I think that the parameters were > working all right, but the memory that is shown by the "free" command isn't > corresponding to the JVM memory. [ snip ] You beat me to the punch. Linux "free" cannot be

Re: tomcat7 does not log x-forwarded-for

2020-04-01 Thread Mark Thomas
On 01/04/2020 06:56, Frank Tornack wrote: > Am Dienstag, den 31.03.2020, 15:47 +0100 schrieb Mark Thomas: >> On 31/03/2020 07:26, Frank Tornack wrote: >>> We used the following configuration for access logging and remote >>> valve: >>> >>