On 2013-06-26 Jeffrey Janner wrote:
> > -----Original Message-----
> > From: honyk [mailto:j.tosov...@email.cz]
> > Sent: Wednesday, June 26, 2013 1:27 PM
> > To: 'Tomcat Users List'
> > Subject: Memory limits for children processes when running Tomcat as
> > service?
> >
> > Dear All,
> >
> > I have a JSF2.0 app that executes (via ProcessBuilder) an external
> > script.
> > This script opens PPTX via PowerPoint ActiveX object, manipulate it
> and
> > save. It runs on Windows Server 2008 R2 64-bit, 4GB RAM, JDK 7.
> >
> > When tomcat 7 is launched using startup.bat (with original settings),
> > it works fine.
> >
> > When tomcat runs as a service, opening the PPTX in the PowerPoint
> fails
> > because of Out Of Memory error regardless Xmx settings
> (tomcat7w.exe).
> >
> > I originally asked PowerPoint forum, but haven't get any explanation
> > yet:
> > http://answers.microsoft.com/thread/37cbebf6-4003-4ab0-9295-
> > 92413aaecc2e
> >
> > But as the entry point is Tomcat and the only difference between
> > problematic and non problematic behavior is the 'service' mode, maybe
> > there is something related in the tomcat7.exe code base. Just
> guessing.
> >
> > Has anybody an idea why both modes behave differently?
> >
> > Thanks, Jan
> 
> What user is the Tomcat service running under?
> What other differences could exist between a user session (running with
> startup.bat) and a background session?

I forgot to mention that the Tomcat service is launched using my credentials
(not as local admin). The same account I use for a remote access and hence
for launching the tomcat via startup.bat.

I really do not see any differences. The same commands (cmd.exe, csript.exe,
...) are executed (64-bit variants) with the same params, but in one case
there are memory limits.

Btw, could be there any memory differences between users? I'll rather double
check this. But I don't know how :-(

What else... antivirus, firewall? I'll try to disable it for a while.

AFAIK tomcat.exe is based on procrun wrapper. Is this wrapper memory safe?

I just think (aloud) I could write a custom wrapper and execute my script
directly from this new service... Quite complex to me... But I could check
if it behaves differently or not...

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to