[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-1011) Component to calculate the memory footprint of elements in the cache
Alexandre Russel (JIRA)
jira-events at lists.jboss.org
Thu Aug 23 04:52:18 EDT 2007
[ http://jira.jboss.com/jira/browse/JBCACHE-1011?page=comments#action_12373459 ]
Alexandre Russel commented on JBCACHE-1011:
-------------------------------------------
do you have any info on: "Java5 java offers support for determining the size of objects"
AFAIK, java 5 only allows to know memory usage and send notification when a threshold is exceeded
on pools that supports it.
Calculating memory usage before and after object allocation would give a wrong size of objects and
would be unusable in J2EE. Especially because if I put a List in the cache and add object to the list I
would need to know the total size of list + objects, so I need to trace each object allocation.
I think this issue should closed as long as knowing the size of objects is not accurate.
alex
> Component to calculate the memory footprint of elements in the cache
> --------------------------------------------------------------------
>
> Key: JBCACHE-1011
> URL: http://jira.jboss.com/jira/browse/JBCACHE-1011
> Project: JBoss Cache
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Eviction
> Reporter: Mircea Markus
> Assigned To: Mircea Markus
> Fix For: 2.1.0.GA
>
>
> As with Java5 java offers support for determining the size of objects. An memory based eviction policy can be written for this java version only. The basic idea is to let the user to specify the amount of memory he wants to use.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list