[rules-users] Measuring Drools Memory Usage

Anstis, Michael (M.) manstis1 at ford.com
Tue Jul 29 03:31:41 EDT 2008


Do you use a stateful session?
 
Are your measurements before and after you've inserted facts into
working memory?
 
Would be helpful to the group to post your use-case source?
 
Thanks,
 
Mike


________________________________

	From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Roger
Tanuatmadja
	Sent: 29 July 2008 02:12
	To: Rules Users List
	Subject: [rules-users] Measuring Drools Memory Usage
	
	
	Hi, 
	 
	Has anyone attempted to measure the incremental memory usage of
using Drools? Anyone cares to share their methodology?
	 
	I am currently following the following methodology:
	1. Prevent garbage collection from happening by using large Xms
Xmx (1024m in my case), a NewRatio of 2 (I am sure other sizes will work
as well) and verbogegc enabled to confirm that no garbage collection is
happening.
	2. Use Runtime.freeMemory before and after fireAllRules and
measuring the difference. 
	 
	The problem with my methods so far has been that after a
positive memory usage (indicating you are using memory), subsequent use
case (the same one) incurs zero memory usage which is very strange. 
	 
	So I guess my question is 2 fold: anyone care to share their
methodology, and can anyone see what's wrong with mine?
	 
	Thanks,
	 
	Roger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080729/ecc1ad50/attachment.html 


More information about the rules-users mailing list