ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Jacobsen" <jerome.jacob...@gentootech.com>
Subject RE: JspC memory leak or memory hog?
Date Mon, 17 Jun 2002 14:22:17 GMT
I don't know, probably.  However what I'd expect is the memory to not keep
increasing with every JSP.  Going from 80MB before JspC to 250MB during JspC
is definitely unacceptable for just 82 JSPs, wouldn't you say?

I've only got 256MB physical RAM.  If I happen to already be over 100MB RAM
before starting the JspC task then the task usually fails with an Exception
or Error.  For example:

jsp-precompile:
    [mkdir] Created dir: C:\Program Files\Oracle\JDeveloper
3.2.3\mywork\Develop
ment\BullWIP\build\work
     [jspc] Compiling 82 source filesC:\Program Files\Oracle\JDeveloper
3.2.3\my
work\Development\BullWIP\build\work\com\gentootech\eip\webclient\view
     [java] java.lang.OutOfMemoryError:
     [java]     at
org.apache.xerces.dom.DeferredDocumentImpl.createChunk(Deferr
edDocumentImpl.java:1784)
     [java]     at
org.apache.xerces.dom.DeferredDocumentImpl.ensureCapacity(Def
erredDocumentImpl.java:1683)
     [java]     at
org.apache.xerces.dom.DeferredDocumentImpl.createNode(Deferre
dDocumentImpl.java:1697)
     [java]     at
org.apache.xerces.dom.DeferredDocumentImpl.createDeferredText
Node(DeferredDocumentImpl.java:433)
     [java]     at
org.apache.xerces.parsers.AbstractDOMParser.ignorableWhitespa
ce(AbstractDOMParser.java:921)
     [java]     at
org.apache.xerces.impl.XMLNamespaceBinder.ignorableWhitespace
(XMLNamespaceBinder.java:628)
     [java]     at
org.apache.xerces.impl.dtd.XMLDTDValidator.characters(XMLDTDV
alidator.java:851)
     [java]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCon
tent(XMLDocumentFragmentScannerImpl.java:841)
     [java]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
tContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1388)
     [java]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(XMLDocumentFragmentScannerImpl.java:333)
     [java]     at
org.apache.xerces.parsers.StandardParserConfiguration.parse(S
tandardParserConfiguration.java:529)
     [java]     at
org.apache.xerces.parsers.StandardParserConfiguration.parse(S
tandardParserConfiguration.java:585)
     [java]     at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)

     [java]     at
org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:221)

     [java]     at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuil
derImpl.java:201)
     [java]     at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
     [java]     at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserU
tils.java:200)
     [java]     at
org.apache.jasper.compiler.TldLocationsCache.parseTldForUri(T
ldLocationsCache.java:275)
     [java]     at
org.apache.jasper.compiler.TldLocationsCache.tldConfigJar(Tld
LocationsCache.java:241)
     [java]     at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldL
ocationsCache.java:207)
     [java]     at
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocati
onsCache.java:139)
     [java]     at org.apache.jasper.JspC.parseFiles(JspC.java:712)
     [java]     at org.apache.jasper.JspC.main(JspC.java:742)
     [java] Exception in thread "main"

BUILD FAILED
C:\Program Files\Oracle\JDeveloper
3.2.3\mywork\Development\BullWIP\build.xml:86
: Java returned: 1

-----Original Message-----
From: Steve Loughran [mailto:steve_l@iseran.com]
Sent: Saturday, June 15, 2002 1:39 AM
To: Ant Users List
Subject: Re: JspC memory leak or memory hog?


I'd expect it to clean up all memory at the end of the <jspc> call, because
it is run in its own JVM.

does the memory go down while ant continues to the next stage in the build?



----- Original Message -----
From: "Jerome Jacobsen" <jerome.jacobsen@gentootech.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>;
<jerome.jacobsen@gentootech.com>
Sent: Friday, June 14, 2002 14:41
Subject: RE: JspC memory leak or memory hog?


> I forgot to add that I'm using the jasper JARs from Tomcat 4.0.3.  I've
> tried the ones from 4.0.1 too with same results.
>
> -----Original Message-----
> From: Jerome Jacobsen [mailto:jerome.jacobsen@gentootech.com]
> Sent: Friday, June 14, 2002 5:39 PM
> To: Ant User
> Subject: JspC memory leak or memory hog?
>
>
> I run JspC target for 82 JSPs in one directory.  Before running I open my
> Task Manager and my memory usage is at 80 MB.  Once I run ant my memory
> usage quickly creeps up to 250 MB by the time it finishes (after about 3
> minutes)!!!  Also tried this with the -classic JVM and get same behavior,
> although it takes longer to do all 82 JSPs.
>
> Environment:
> Win2K
> Ant 1.5beta2
> JDK 1.3.1 -hotspot
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message