Still seeing a lot of memory usage


(Russ Egan) #1

Things are starting to look really good. I’m definitely seeing a performance boost, but I also still see an enormous memory usage resolving dependencies.

Interestingly, it’s different than in M5. Seems like there are big garbage collections now, which is good, but it still creeps up to a point where it effectively locks up.

The project is a multi-module project with some jboss dependencies. The jboss dependencies are the culprit: they are deeply nested. Here’s an example. Below that is a screenshot of the memory graph.

dependencies {

testCompile library.hamcrestLibrary

testCompile library.yourkitProbes

testCompile library.monfoxAgent

testCompile project(path: “:utility”, configuration: ‘tests’)

testCompile library.jbossasVaria

testCompile library.jbossasConnector

testCompile library.commonsIo

testCompile library.commonsHttpClient

testCompile library.javaxConnectorApi

testCompile library.lunaJcasp

testCompile library.lunaJcesp

compile project(":utility")

compile library.intellijAnnotations

compileProvided library.luceneCore

compileProvided library.hibernateCore,

library.hibernateSearch,

library.hibernateAnnotations,

library.hibernateValidator,

library.hibernateCommonsAnnotations

compileProvided library.javaxPersistenceApi,

library.javaxEjb3Api,

library.javaxJms,

library.javaxTransactionApi,

library.servletApi

compileProvided library.commonsLang,

library.commonsLogging

compile library.commonsCollections,

library.commonsBeanutils

compileProvided library.jbossLoggingSpi,

library.jbossRemoting,

library.jbosssx,

library.jbossasSecurity,

library.jbossKernel,

library.jbossDeployersCoreSpi,

library.jbossasSystemJmx,

library.jbossCommonCore,

library.jbossHibernate,

library.jbossasJ2se,

library.jbossManaged,

library.jbossasSystem

compile library.jbossEjb3ExtApi

compileProvided library.acegi

compile library.monfoxMgr

runtime library.monfoxMibs,

library.monfoxLic

compile library.quartz

compile library.jradiusCore,

library.jradiusDictionary,

library.jradiusExtended

compile library.glazedLists

compileProvided library.springCore,

library.springBeans,

library.springContext

compile library.velocity

compile library.jna

compile library.dozer

compile library.javolution

compile library.log4j

compile library.gnucrypto }


(Luke Daley) #2

Thanks for the detailed info Russ. It’s very helpful.

We haven’t started optimising yet, but this info will be helpful when we do.