"java.lang.OutOfMemoryError: unable to create new native thread"
usually means the thread stack space is too large. Interestingly this
is the only thing not in your string below, so it's at the default
(which can be quite large, depending on platform). Basically, the
mailer is queing up a whole laod of threads and they are all taking
too much memory each as stack, hence the error.

Try -Xss128k (work up from there if you get class
java.lang.StackOverflowError instead).

You could try making the heap bigger too (1024MB might just not be enough).

As an aside, did you notice you have -XX:NewSize=64m twice?

On 7/28/07, Rich Sloan <[EMAIL PROTECTED]> wrote:
> We are running CF 7.0.2 on a Windows 2003 server and we are having issues 
> with the mail spooler. When sending a large amount of mail the spooler will 
> stop running and it throws this error.
> java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start(Native Method)
>         at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:102)
>         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:959)
>         at 
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:197)
>         at javax.mail.Service.connect(Service.java:233)
>         at coldfusion.mail.MailSpooler.getConnection(MailSpooler.java:908)
>         at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:773)
>         at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:704)
>         at coldfusion.mail.MailSpooler.access$200(MailSpooler.java:66)
>         at coldfusion.mail.MailSpooler$2.run(MailSpooler.java:1050)
>         at java.lang.Thread.run(Thread.java:534)
>
> Now my first thought is that it is something with my JVM arguments, since we 
> tweaked it to get better performance. But I am not seeing anything that would 
> cause an out of memory error? Any suggestions/Comments would be greatly 
> appreciated.
> ------ Our JVM Args ----
> java.args=-server  -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Xms1024m 
> -Xmx1024m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=512m 
> -XX:PermSize=128m -XX:NewSize=64m -XX:+UseConcMarkSweepGC -XX:NewSize=64m 
> -Dcoldfusion.rootDir={application.home}/../ 
> -Dcoldfusion.libPath={application.home}/../lib -Xdebug 
> -Xrunjdwp:transport=dt_socket,server=y,address=28999,suspend=n 
> -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/cfform/jars,D:\\CF_JARFiles,D:\\CFusionMX7\\cfx\\cfx_Excel2Query.jar,D:\\CFusionMX7\\cfx\\cfx_text2Query.jar

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284756
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to