Re: Jmx example for adding or removing users?

2019-04-26 Thread Alex O'Ree
Ahh perfect, thanks. On Fri, Apr 26, 2019 at 12:34 PM Mark Thomas wrote: > On 26/04/2019 12:11, Alex O'Ree wrote: > > I am looking for a way to programmatically add or remove user accounts > > using tomcats user xml file as a store without restarting tomcat. Can > this > > be done using jmx? >

Re: OutOfMemory on large file download with AJP and cachingAllowed=false

2019-04-26 Thread Mark Thomas
On 26/04/2019 21:07, Olivier Jaquemet wrote: > PS : completely unrelated to this matter, I just find out that the page > https://tomcat.apache.org/svn.html contains outdated information and > should probably removed as it as been replaced with > https://tomcat.apache.org/source.html There is

Re: OutOfMemory on large file download with AJP and cachingAllowed=false

2019-04-26 Thread Olivier Jaquemet
On 26/04/2019 09:56, Mark Thomas wrote: There was an extra copy but Chris's suggestion got me thinking and I found a much better solution. The patch has been applied to 9.0.x and 8.5.x and will be in the next release of both. 7.0.x is not affected. The patch fixes the OutOfMemoryError and the

Re: Jmx example for adding or removing users?

2019-04-26 Thread Mark Thomas
On 26/04/2019 12:11, Alex O'Ree wrote: > I am looking for a way to programmatically add or remove user accounts > using tomcats user xml file as a store without restarting tomcat. Can this > be done using jmx? > Yes. Look under Users -> UserDatabase Mark

Re: Internals of Tomcat Thread Pool

2019-04-26 Thread Mark Thomas
On 26/04/2019 06:25, Supun Abeysinghe wrote: > Hi all, > > > I am working on a project which tries to tune the Tomcat thread pool > dynamically by looking at runtime characteristics in order to enhance the > system performance. To get a better understanding, I have gone through the > Tomcat

Re: Fix for DBCP-518

2019-04-26 Thread Mark Thomas
On 24/04/2019 16:28, Lazar Kirchev wrote: > Hello, > > Any update on this? No specific plans but I can do an update of DBCP2, Pool2 etc for the next set of releases. Mark > > Regards, > Lazar > > On Tue, Apr 16, 2019 at 4:28 PM Lazar Kirchev > wrote: > >> Hello, >> >> Do you have any

Re: Apache httpd / tomcat AJP connector(s?)

2019-04-26 Thread Mark Thomas
On 24/04/2019 10:58, André Warnier (tomcat) wrote: > Hi. > > This is somewhat of an arcane question and somewhat straddling httpd and > tomcat, so if I'm on the wrong list for this, just let me know. Here is fine. We can always move the thread if necessary. > The question is : is there any

Re: Using custom Configurator with WebSockets

2019-04-26 Thread Mark Thomas
Hmm. Looking at this some more I'm not sure this is going to work. HarbourServerEndpoint needs to extend javax.websocket.Endpoint which it can't do as an interface. I think you are going to have to wrap the instance returned by the registry. In which case you can probably go back to using POJO.

Jmx example for adding or removing users?

2019-04-26 Thread Alex O'Ree
I am looking for a way to programmatically add or remove user accounts using tomcats user xml file as a store without restarting tomcat. Can this be done using jmx?

Re: Using custom Configurator with WebSockets

2019-04-26 Thread Christopher Dodunski
So I've converted the server endpoint from annotation-based to programmatic, to get around the constraint of the @ServerEndpoint annotation having to decorate a concrete class. The elements of this annotation now occupy an implementation of ServerApplicationConfig: public class

Re: OutOfMemory on large file download with AJP and cachingAllowed=false

2019-04-26 Thread Mark Thomas
On 25/04/2019 21:37, Mark Thomas wrote: > On 25/04/2019 21:16, Christopher Schultz wrote: >> On 4/25/19 15:55, Mark Thomas wrote: >> If the resources are caching-aware, then I think the DefaultServlet >> can just always use Resource.getInputStream. >> >> Hmm. That might cause a lot of