You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Matt Baker (JIRA)" <ji...@apache.org> on 2016/11/01 15:04:58 UTC
[jira] [Created] (AMQ-6492) concurrentlinkedhashmap used by LRU
cache consumes 100MB memory on 1024 core Solaris T5
Matt Baker created AMQ-6492:
-------------------------------
Summary: concurrentlinkedhashmap used by LRU cache consumes 100MB memory on 1024 core Solaris T5
Key: AMQ-6492
URL: https://issues.apache.org/jira/browse/AMQ-6492
Project: ActiveMQ
Issue Type: Bug
Components: activemq-camel
Affects Versions: 5.14.1
Environment: Solaris T5 with 1024 core
java 1.7.045
Reporter: Matt Baker
A basic setup of activemq-all.jar setup on a high CPU count machine ends up consuming 100's of MB due to the poor memory allocation used by the ConcurrentLinkedHashMap implementation that is being used by LRU Cache.
The ConcurrentLinkedHashMap allocates concurrency for its lock table based on the number of CPUs with no upper limit. Apache Camel uses multiple copies of LRUCache each of which consume ~20MB of memory. Due to this my install ends up consuming almost 400MB of memory.
Will post screenshot from yourkit.
Have logged this with owner of this code.
https://github.com/ben-manes/concurrentlinkedhashmap/issues/49
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)