We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BeSeWe
Posts: 1
Joined: Thu Nov 06, 2014 6:52 pm

Tomcat with -XX:PermSize=128m Paramter

Hi,

I'm currently building a Installer for my Tomcat Application. And I have now the problem, that the installation works fine. But when I start the app I get the following error: java.lang.OutOfMemoryError: PermGen space
Therfore I search for a possibilty to add the folloing parameter -XX:PermSize=128m to my service.
When I add this parameter to the catailina.bat and start it manually it works fine.

Thanks in advance.

Benjamin
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Tomcat with -XX:PermSize=128m Paramter

Hello Benjamin and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to add the related parameter to your Tomcat service you can use a BAT file with proper command lines. For, example you can add the BAT file in "Files and Folders" page and then launch it using a "Launch file" predefined custom action scheduled in "Custom Actions" page after "Install Execution Stage -> Add Resources" action group as deferred.

Also, please take a look on the "Installing and Updating Services" articles which should be useful for you.

Let us know if this helped, otherwise please give us more details about what you are trying to achieve.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”