DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21876>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21876

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





------- Additional Comments From [EMAIL PROTECTED]  2003-07-25 15:13 -------
the code for the exel generation is simple
=> a collection is created, using data from different DAO class (connected to 
oracle and corba)

once the collection is ready, i do the excel ==> no special layout, just 10 
sheet, about 1000 record per sheet, 30 column

    public HSSFWorkbook doTheExcel(JspWriter out) throws IOException {
        HSSFSheet sheet;
        HSSFWorkbook wb = new HSSFWorkbook();
        int myint = 0;
        Collection allDan =  new ReportBean().getDanList();
        Dan oneDan;
        Iterator iter = allDan.iterator();
        out.flush();
        while (iter.hasNext()){
            myint++;
            oneDan = (Dan) iter.next();
            sheet = wb.createSheet("PortPassport_"+ oneDan.getDan_name()
+"_"+myint);
            out.println("<li><b>DAN </b> "+oneDan.getDan_name());
            out.flush();
            doTitle(sheet);
            doContent(sheet,oneDan.getDan_id());
            out.println("<font class=DarkGreen>  ok</font></li>");
        }
        out.print("</MENU>");
        return wb;
    }


with the -verbosegc option I have (part of the log)

<----------------------------------------------------------->
[GC 58111K->44763K(130560K), 0.0836426 secs]
[GC 58267K->44651K(130560K), 0.0813831 secs]
[GC 58155K->44658K(130560K), 0.0774749 secs]
[GC 58162K->44685K(130560K), 0.0781372 secs]
[GC 58189K->44830K(130560K), 0.0856084 secs]
[GC 58334K->45019K(130560K), 0.0884809 secs]
[GC 58521K->45088K(130560K), 0.0909737 secs]
[GC 58592K->45019K(130560K), 0.0832764 secs]
[GC 58521K->45141K(130560K), 0.0815629 secs]
[GC 58645K->45066K(130560K), 0.0825176 secs]
[GC 58568K->45186K(130560K), 0.0820842 secs]
[GC 58690K->45389K(130560K), 0.0905469 secs]
[GC 58893K->45406K(130560K), 0.0989173 secs]
[GC 58910K->46923K(130560K), 0.1802498 secs]
[GC 60427K->47006K(130560K), 0.1081365 secs]
[GC 60510K->47044K(130560K), 0.0802481 secs]
[GC 60548K->47101K(130560K), 0.0815010 secs]
[GC 60605K->47348K(130560K), 0.0879132 secs]
[GC 60852K->47362K(130560K), 0.0946540 secs]
[GC 60866K->47326K(130560K), 0.0864550 secs]
[GC 60830K->47536K(130560K), 0.0881128 secs]
[GC 61040K->47588K(130560K), 0.0939117 secs]
[GC 61092K->47468K(130560K), 0.0857027 secs]
[GC 60971K->47679K(130560K), 0.0871233 secs]
[GC 61183K->47576K(130560K), 0.0844342 secs]
[GC 61079K->47752K(130560K), 0.0895072 secs]
[GC 61256K->48867K(130560K), 0.1623272 secs]
[GC 62371K->49246K(130560K), 0.1264462 secs]
[GC 62750K->49342K(130560K), 0.1036315 secs]
[GC 62845K->49507K(130560K), 0.0903454 secs]
[GC 63011K->49474K(130560K), 0.0909878 secs]
[GC 62978K->49757K(130560K), 0.0974931 secs]
[GC 63261K->49760K(130560K), 0.0991084 secs]
[GC 63264K->49649K(130560K), 0.0891965 secs]
[GC 63153K->50081K(130560K), 0.1121554 secs]
[GC 63585K->51016K(130560K), 0.1641777 secs]
[GC 64520K->50955K(130560K), 0.1054016 secs]
<Jul 25, 2003 10:34:01 AM CEST> <Error> <HTTP> <[WebAppServletContext
(1102187,DCStarWebApp,/DCStarWebApp)] Servlet failed with Exception
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start(Native Method)
        at org.apache.log4j.PropertyConfigurator.configureAndWatch
(PropertyConfigurator.java:375)
        at org.apache.log4j.PropertyConfigurator.configureAndWatch
(PropertyConfigurator.java:355)
        at mobistar.dcstar.tools.ErrorBean.<init>(ErrorBean.java:46)
        at jsp_servlet._Jsp.__errorpage_include._jspService
(__errorpage_include.java:96)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:265)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:304)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:200)
        at weblogic.servlet.internal.RequestDispatcherImpl.include
(RequestDispatcherImpl.java:482)
        at weblogic.servlet.internal.RequestDispatcherImpl.include
(RequestDispatcherImpl.java:308)
        at weblogic.servlet.jsp.PageContextImpl.include
(PageContextImpl.java:116)
        at weblogic.servlet.jsp.PageContextImpl.handlePageException
(PageContextImpl.java:269)
        at jsp_servlet._Jsp.__popup_HSSF._jspService(__popup_HSSF.java:146)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:265)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:200)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:2546)
        at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2260)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> 
<----------------------------------------------------------->

for this test i have "-ms128m -mx128m" (but "-ms256m -mx256m" has the same 
effect, there is still free memory)


an other part of the log file with "-ms64m -mx64m" to see the action of a full 
GC:

<----------------------------------------------------------->
[GC 57847K->51140K(65280K), 0.1227375 secs]
[GC 57860K->51153K(65280K), 0.1218409 secs]
[GC 57873K->51312K(65280K), 0.1386660 secs]
[GC 58032K->51879K(65280K), 0.1718578 secs]
[Full GC 58599K->21266K(65280K), 2.0990213 secs]
[GC 27986K->21304K(65280K), 0.1174647 secs]
[GC 28023K->21809K(65280K), 0.1361481 secs]
[GC 28529K->21737K(65280K), 0.1250673 secs]
[GC 28457K->22345K(65280K), 0.1266070 secs]
[GC 29065K->22432K(65280K), 0.1251829 secs]
[GC 29152K->22434K(65280K), 0.1254387 secs]
[GC 29154K->22433K(65280K), 0.1226090 secs]
[GC 29153K->22430K(65280K), 0.1269320 secs]
[GC 28748K->24307K(65280K), 0.1471761 secs]
[GC 31027K->25197K(65280K), 0.1567875 secs]
[GC 31917K->25391K(65280K), 0.2083542 secs]
[GC 32110K->25447K(65280K), 0.2917099 secs]
[Full GC 28557K->13166K(65280K), 1.4535354 secs]
<----------------------------------------------------------->

(first Full GC is automatic, second is forced)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to