[
https://issues.apache.org/jira/browse/BCEL-320?focusedWorklogId=263780&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-263780
]
ASF GitHub Bot logged work on BCEL-320:
---------------------------------------
Author: ASF GitHub Bot
Created on: 20/Jun/19 13:27
Start Date: 20/Jun/19 13:27
Worklog Time Spent: 10m
Work Description: suztomo commented on pull request #28: [BCEL-320]
LruCacheClassPathRepository
URL: https://github.com/apache/commons-bcel/pull/28
[BCEL-320](https://issues.apache.org/jira/browse/BCEL-320)
[BCEL OutOfMemoryError
Example](https://github.com/suztomo/bcel-oome-example) is an example of
OutOfMemoryError caused by scanning many JAR files using BCEL
ClassPathRepository and MemorySensitiveClassPathRepository. This newly proposed
LruCacheClassPathRepository does not fail for the case.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 263780)
Time Spent: 10m
Remaining Estimate: 0h
> A new ClassPathRepository that can scan many JAR files without
> OutOfMemoryError
> -------------------------------------------------------------------------------
>
> Key: BCEL-320
> URL: https://issues.apache.org/jira/browse/BCEL-320
> Project: Commons BCEL
> Issue Type: Improvement
> Reporter: Tomo Suzuki
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> (This ticket is derivation from
> [BCEL-317|https://issues.apache.org/jira/browse/BCEL-317], which I found
> creating ConstantUtf8 cache is not straightforward under current
> ClassPathRepository design.)
> We use BCEL library in
> https://github.com/GoogleCloudPlatform/cloud-opensource-java . Thank you for
> great library.
> h1. Background
> Our use of BCEL ClassPathRepository and MemorySensitiveClassPathRepository
> causes OutOfMemoryError when they scan many (~200) JAR files. Initially I
> thought this problem could be fixed by
> [BCEL-317|https://issues.apache.org/jira/browse/BCEL-317], but it turned out
> that it's not straightforward under current design. Instead of focusing on
> ConstantUtf8, I decided to use my own custom ClassPathRepository that uses
> LRU cache internally to hold JavaClass instances. It worked.
> This ticket is to contribute the idea to BCEL library so that other users can
> benefit from it.
> h1. Test Case
> This GitHub project is a example of OutOfMemoryError caused by scanning many
> JAR files using BCEL ClassPathRepository and
> MemorySensitiveClassPathRepository:
> https://github.com/suztomo/bcel-oome-example
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)