Community

Big memory usuage increase after upgraded from 4.2.1.GA to 5.1.0.GA

reply from Samuel Cai in Performance Tuning - View the full discussion

I tried a change on VFS, class org.jboss.virtual.plugins.context.zip.ZipFileWrapper, method openStream:

From:

ZipEntryInputStream zis = new ZipEntryInputStream(this, is);

return zis;

To:

//ZipEntryInputStream zis = new ZipEntryInputStream(this, is);

//return zis;

return is;

 

That is, don't use ZipEntryInputStream, let any class/method invoking openStream to close zipFile's inputStream immediatelly.

ZipFile will be in open status, but all steams will be closed well.

 

This makes the process size down to same as JBoss 4's. I tried going through first 3 pages of site, no problems. May need QA team to test more.

 

I guess this is a weird bug only happen on our environment.

Reply to this message by going to Community

Start a new discussion in Performance Tuning at Community