Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Excessive memory consumption in Test Runner
Excessive memory consumption in Test Runner [message #1701844] Thu, 16 July 2015 03:56 Go to next message
Eclipse UserFriend
Hi,

We are running a test suite containing around 250 test cases using the test runner tool. We noticed that the memory used grows bit by bit as the number of test cases run grows and it ends consmuing all available memory, in this case 1024 mb.
Once we analyzed the heap dump, we found that half of memory was allocated by rcptt objects as you can see below and in the attached files.
We think it is related only to the report objects and we wonder if it is an expected behavior or may be some kind of memory leak.

How can we fix this problem?

Thank you


Class Name | Shallow Heap | Retained Heap
-----------------------------------------------------------------------------------------------------------------------------------------------------------
| |
java.util.HashMap @ 0x1da55438 | 48 | 334.185.232
|- table java.util.HashMap$Entry[512] @ 0x1dac6e18 | 2.064 | 334.185.168
| |- [198] java.util.HashMap$Entry @ 0x1daf1fc8 | 24 | 328.333.456
| | |- value org.eclipse.rcptt.ecl.internal.core.ScriptletDefinition @ 0x1db40228 | 32 | 328.333.416
| | | |- service org.eclipse.rcptt.core.internal.ecl.core.commands.ReportService @ 0x1eb711e8 | 16 | 328.333.224
| | | | |- stack java.util.Stack @ 0x1eb9f1c0 | 24 | 328.333.208
| | | | | |- elementData java.lang.Object[640] @ 0x341df370 | 2.576 | 328.333.184
| | | | | | |- [455] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x3eaa2d18 | 24 | 465.016
| | | | | | | |- node org.eclipse.rcptt.sherlock.core.model.sherlock.report.impl.NodeImpl @ 0x3eaa6230 | 64 | 438.248
| | | | | | | | |- snapshots org.eclipse.emf.ecore.util.EObjectContainmentEList @ 0x3eaaabd0 | 32 | 317.792
| | | | | | | | |- children org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList @ 0x3eaaab68 | 40 | 118.864
| | | | | | | | |- eContainer org.eclipse.rcptt.sherlock.core.model.sherlock.report.impl.NodeImpl @ 0x3eaa5730 | 64 | 26.664
| | | | | | | | | |- children org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList @ 0x3eaaa2a0 | 40 | 23.040
| | | | | | | | | |- properties org.eclipse.emf.ecore.util.EcoreEMap @ 0x3eaaa2e0 | 40 | 3.376
| | | | | | | | | |- name java.lang.String @ 0x3eaaa2c8 | 24 | 184
| | | | | | | | | |- eContainer org.eclipse.rcptt.sherlock.core.model.sherlock.report.impl.ReportImpl @ 0x3eaa6cc8 | 40 | 40
| | | | | | | | | |- <class> class org.eclipse.rcptt.sherlock.core.model.sherlock.report.impl.NodeImpl @ 0x1d9a9cf8| 24 | 24
| | | | | | | | | '- Total: 5 entries | |
| | | | | | | | |- properties org.eclipse.emf.ecore.util.EcoreEMap @ 0x3eaaaba8 | 40 | 1.424
| | | | | | | | |- name java.lang.String @ 0x3eaaab90 | 24 | 104
| | | | | | | | |- <class> class org.eclipse.rcptt.sherlock.core.model.sherlock.report.impl.NodeImpl @ 0x1d9a9cf8 | 24 | 24
| | | | | | | | '- Total: 6 entries | |
| | | | | | | |- parent org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x3ea9a9a8 | 24 | 24
| | | | | | | |- this$0 org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder @ 0x3eaa37f8 | 16 | 16
| | | | | | | |- <class> class org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x1d9a9de0 | 0 | 0
| | | | | | | '- Total: 4 entries | |
| | | | | | |- [552] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x40ed8a0 | 24 | 24
| | | | | | |- [553] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x41a7680 | 24 | 24
| | | | | | |- [554] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x41ebb78 | 24 | 24
| | | | | | |- [555] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x42e0348 | 24 | 24
| | | | | | |- [556] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x431a548 | 24 | 24
| | | | | | |- [557] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x435e518 | 24 | 24
| | | | | | |- [558] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4441730 | 24 | 24
| | | | | | |- [559] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4475188 | 24 | 24
| | | | | | |- [560] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4566318 | 24 | 24
| | | | | | |- [561] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x45e5698 | 24 | 24
| | | | | | |- [562] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x462b998 | 24 | 24
| | | | | | |- [563] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4758648 | 24 | 24
| | | | | | |- [564] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x47a4dd0 | 24 | 24
| | | | | | |- [565] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x47ea630 | 24 | 24
| | | | | | |- [566] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x48ad688 | 24 | 24
| | | | | | |- [567] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x48fa1d0 | 24 | 24
| | | | | | |- [568] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x49405e8 | 24 | 24
| | | | | | |- [569] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4a25510 | 24 | 24
| | | | | | |- [570] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4ad1e58 | 24 | 24
| | | | | | |- [571] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4b19b50 | 24 | 24
| | | | | | |- [572] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4b91fe8 | 24 | 24
| | | | | | |- [573] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4bf46c0 | 24 | 24
| | | | | | |- [574] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4cbfcb0 | 24 | 24
| | | | | | |- [575] org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder$NodeBuilder @ 0x4ddbc08 | 24 | 24
| | | | | | '- Total: 25 of 597 entries | |
| | | | | |- <class> class java.util.Stack @ 0x196dd840 System Class | 8 | 8
| | | | | '- Total: 2 entries | |
| | | | |- <class> class org.eclipse.rcptt.core.internal.ecl.core.commands.ReportService @ 0x1d9a98e8 | 8 | 8
| | | | '- Total: 2 entries | |
| | | |- friendlyNames java.util.HashSet @ 0x1eb711d8 | 16 | 144
| | | |- namespace java.lang.String @ 0x1b788b78 | 24 | 104
| | | |- name java.lang.String @ 0x1b788b60 | 24 | 72
| | | |- config org.eclipse.core.internal.registry.ConfigurationElementHandle @ 0x1db7bd90 | 16 | 16
| | | |- <class> class org.eclipse.rcptt.ecl.internal.core.ScriptletDefinition @ 0x1da36ef8 | 0 | 0
| | | '- Total: 6 entries | |
| | |- key org.eclipse.rcptt.ecl.runtime.FQName @ 0x1db40218 | 16 | 16
| | |- <class> class java.util.HashMap$Entry @ 0x196b5488 System Class | 0 | 0
| | '- Total: 3 entries
Re: Excessive memory consumption in Test Runner [message #1701851 is a reply to message #1701844] Thu, 16 July 2015 04:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Hicyo,

Yes, this is a known issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=472798

Should be fixed until the next release (Sep 25).

Kind regards,
Ulyana.
Re: Excessive memory consumption in Test Runner [message #1703172 is a reply to message #1701844] Wed, 29 July 2015 02:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Hicyo,

Happy to inform that the issue is already fixed (RCPTT v2.1.0-SNAPSHOT).

Kind regards,
Ulyana.
Re: Excessive memory consumption in Test Runner [message #1703217 is a reply to message #1703172] Wed, 29 July 2015 08:46 Go to previous message
Eclipse UserFriend
Ok. Thank you.
Previous Topic:Data Driven using RCPTT
Next Topic:RCPTT Test Management
Goto Forum:
  


Current Time: Fri Jun 20 22:44:25 EDT 2025

Powered by FUDForum. Page generated in 0.04786 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top