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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:284746
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4