Re: Out of memory exception

2021-02-18 Thread Niranjan Rao
On 2/18/21 12:53 PM, Shawn Heisey wrote: On 2/18/2021 12:11 PM, Niranjan Rao wrote: Thank you the response. This is not a web application, but a standalone java program. Hence I said it's not a tomcat question, but a generic JVM question. I have been researching about this a lot and based on

Re: Out of memory exception

2021-02-18 Thread Shawn Heisey
On 2/18/2021 12:11 PM, Niranjan Rao wrote: Thank you the response. This is not a web application, but a standalone java program. Hence I said it's not a tomcat question, but a generic JVM question. I have been researching about this a lot and based on many mails on this list, lot of people

[ANN] Apache Tomcat Migration tool for Jakarta EE 0.2.0

2021-02-18 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat Migration Tool for Jakarta EE 0.2.0 Apache Tomcat Migration Tool for Jakarta EE is an open source software tool for migrating binary web applications (WAR files) and other binary artefacts from Java EE 8 to Jakarta EE 9.

Re: Out of memory exception

2021-02-18 Thread Brian Wolfe
You need to monitor the JVM through something like visual VM or JConsole. Monitor the heap space. Your gonna have to modify your code to help you understand where the memory leak is occurring. The stack trace should give you an idea of where in your code it is trying to allocate memory. On Thu,

Re: Out of memory exception

2021-02-18 Thread Robert Turner
Have you tried enabling heap dumps on OOM exceptions ( https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html ; HeapDumpOnOutOfMemoryError) and then looking at the heap dump? It should help you identify where the allocated heap is going to, and give you some ideas of

Re: Out of memory exception

2021-02-18 Thread Niranjan Rao
Hi Shawn Thank you the response. This is not a web application, but a standalone java program. Hence I said it's not a tomcat question, but a generic JVM question. I have been researching about this a lot and based on many mails on this list, lot of people here know about internal behavior of

Re: Out of memory exception

2021-02-18 Thread Shawn Heisey
On 2/18/2021 11:36 AM, Niranjan Rao wrote: First apologies for non tomcat question. I have seen that there is enough expertise here to provide hints and hints are what I am looking for to solve the problem and question is generic enough. I have tried researching problem to best of my

Out of memory exception

2021-02-18 Thread Niranjan Rao
Greetings, First apologies for non tomcat question. I have seen that there is enough expertise here to provide hints and hints are what I am looking for to solve the problem and question is generic enough. I have tried researching problem to best of my abilities. It all happens on Ubuntu

Re: Ad Apache Sling scripting (Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-18 Thread Woonsan Ko
You might want to take a look at this, too: - http://portals.apache.org/bridges/bridges-script/index.html Of course, there must be outdated dependencies, but the idea is the same and it has working code: integrate with JSR-223 for jruby, jython, bsh, js, etc. The portlet api (e.g, PortletRequest,

Ad Apache Sling scripting (Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-18 Thread Rony G. Flatscher (Apache)
Chris, On 18.02.2021 15:56, Christopher Schultz wrote: ... cut ... > A BSF / JSR-233 environment that is available for any servlet container would > certainly be an > accomplishment, and probably very useful for some shops (and students!). > > I wonder if there is anything we can learn / steal

Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-18 Thread Christopher Schultz
Rony, On 2/18/21 09:26, Rony G. Flatscher (Apache) wrote: Hi Chris, On 17.02.2021 14:59, Christopher Schultz wrote: Rony and Leo, On 2/17/21 02:58, Rony G. Flatscher (Apache) wrote: Hi Leo, why would you want to do that if you could do the same with Java? What is the motivation, the use

Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-18 Thread Rony G. Flatscher (Apache)
Hi Chris, On 17.02.2021 14:59, Christopher Schultz wrote: > Rony and Leo, > > On 2/17/21 02:58, Rony G. Flatscher (Apache) wrote: >> Hi Leo, >> >> why would you want to do that if you could do the same with Java? What is >> the motivation, the use >> case for you? >> >> How urgent is this (I may

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread aghart...@gmail.com
Hi, FYI, tomcat 9.0.43 have this problem too. Best Regards, Agharta Il 18/02/21 12:51, aghart...@gmail.com ha scritto: Hi Mark, Good questions, my mistake, sorry. So: jar file name is testannotation.jar package is "aaa." (very simple) Standard vanilla tomcat (.zip) downloaded from ASF

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread aghart...@gmail.com
Hi Mark, Good questions, my mistake, sorry. So: jar file name is testannotation.jar package is "aaa." (very simple) Standard vanilla tomcat (.zip) downloaded from ASF site, no package manager. Unzipped to my home directory. org.apache.tomcat.util.scan.StandardJarScanner.level = FINE

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread Mark Thomas
On 18/02/2021 10:46, aghart...@gmail.com wrote: > Hi all, > > A question, I can't solve that > > Tested with Tomcat 9.0.41, java 8 x64, linux (Fedora 32). > > > I have a standard tomcat web.xml (3.0 or 3.1, no matter). > > I have created an external simple servlet with @WebServlet

Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-18 Thread aghart...@gmail.com
Hi all, A question, I can't solve that Tested with Tomcat 9.0.41, java 8 x64, linux (Fedora 32). I have a standard tomcat web.xml (3.0 or 3.1, no matter). I have created an external simple servlet with @WebServlet annotation, and packaged it to a jar file: @WebServlet(name =