Runtime rt = Runtime.getRuntime();
String total = String.valueOf(rt.totalMemory());
String free = String.valueOf(rt.freeMemory());
String max = String.valueOf(rt.maxMemory());
// open a cursor for the pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
IDataUtil.put( pipelineCursor , “TotalMemory”, total);
IDataUtil.put( pipelineCursor , “MaxMemory”, max);
IDataUtil.put( pipelineCursor , “FreeMemory”, free);
pipelineCursor.destroy();
This is a simple java service to retrive total memory used, free memory available, and more nicely, the Xmx parameter (MaxMemory)
#Integration-Server-and-ESB#webMethods