ajvpr
Posts: 15
Joined: Fri Apr 01, 2016 2:09 am

Java hitting "unable to create new native thread" problem on switch to AdvancedInstaller installer

Hello,

I've had my java application developed using another Windows installer platform/tools and just recently switched to an Advanced Installer installer package. I'm hitting the following error on my application:

java.lang.OutOfMemoryError: unable to create new native thread

Now, I've researched a bit about this and know what different approaches I can take to resolve this but the weird thing is that I'm running the exact same code with my previous installer package in the same computer and I don't get this error when running the same operation. I was wondering if Advanced Installer is setting some non-standard JVM settings when my Java application is called. Is there any specific value that Advanced Installer is setting the JVM memory or max thread count by default?

Thanks in advance!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java hitting "unable to create new native thread" problem on switch to AdvancedInstaller installer

Hello,

Yes, the JVM settings are configured from "Virtual Machine" tab of the "Java Products" page. Just go to "Java Products" page and select your added java product item. Then in the right pane select the "Virtual Machine" tab and check the configured JVM Parameters. When no value is explicitly set for these parameters, Advanced Installer will not use any default value for them. It is the JVM which will use its default values for these parameters.

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

Return to “Common Problems”