Bug 47999 - PATCH: OpenXML4j OPCPackage calls Runtime.getRuntime().gc() which is considered a perfomance bottleneck
Summary: PATCH: OpenXML4j OPCPackage calls Runtime.getRuntime().gc() which is consider...
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.5-FINAL
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2009-10-15 00:17 UTC by Marcus Thiesen
Modified: 2009-10-16 06:37 UTC (History)
0 users

Patch to remove Call (353 bytes, patch)
2009-10-15 00:18 UTC, Marcus Thiesen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Thiesen 2009-10-15 00:17:01 UTC
OpenXML4j causes a lot of unnecessary garbage collection on our system
which leads to performace losses.

Apparently, according to the latest JavaDoc [1], a call to
Runtime.getRuntime().gc() causes a full heap garbage collect, which
isn't what you usually want in any longer running application. The
runtime knows when to garbage collect.

[1]: http://java.sun.com/javase/6/docs/api/java/lang/Runtime.html#gc()
Comment 1 Marcus Thiesen 2009-10-15 00:18:33 UTC
Created attachment 24380 [details]
Patch to remove Call
Comment 2 Nick Burch 2009-10-16 06:37:32 UTC
Thanks for this patch, I've applied it to trunk. Do shout if you find any more performance things like this!