You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2013/04/25 17:50:26 UTC

svn commit: r1475832 - /uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java

Author: degenaro
Date: Thu Apr 25 15:50:26 2013
New Revision: 1475832

URL: http://svn.apache.org/r1475832
Log:
UIMA-2825 DUCC webserver (WS) Job Details Processes tab revisions

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java?rev=1475832&r1=1475831&r2=1475832&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java Thu Apr 25 15:50:26 2013
@@ -193,6 +193,14 @@ public class ProcessAccounting {
 		return;
 	}
 	
+	public void copyInventoryRss(IDuccWork dw, IDuccProcess inventoryProcess, IDuccProcess process) {
+		String methodName = "copyInventoryRss";
+		logger.trace(methodName, null, messages.fetch("enter"));
+		process.setResidentMemory(inventoryProcess.getResidentMemory());
+		logger.trace(methodName, null, messages.fetch("exit"));
+		return;
+	}
+	
 	public void copyTimeInit(IDuccProcess inventoryProcess, IDuccProcess process) {
 		String methodName = "copyTimeInit";
 		logger.trace(methodName, null, messages.fetch("enter"));
@@ -311,8 +319,6 @@ public class ProcessAccounting {
 					process.setGarbageCollectionStats(inventoryProcess.getGarbageCollectionStats());
 					logger.trace(methodName, job.getDuccId(), process.getDuccId(), "GC Stats Count:"+process.getGarbageCollectionStats().getCollectionCount());
 				}
-				process.setResidentMemory(inventoryProcess.getResidentMemory());
-				logger.trace(methodName, job.getDuccId(), process.getDuccId(), "Resident Memory:"+process.getResidentMemory());
 				process.setCpuTime(inventoryProcess.getCpuTime());
 				logger.trace(methodName, job.getDuccId(), process.getDuccId(), "Cpu Time:"+process.getCpuTime());
 				logger.info(methodName, job.getDuccId(), process.getDuccId(), messages.fetchLabel("process state")+process.getProcessState());
@@ -479,6 +485,8 @@ public class ProcessAccounting {
 							copyInventorySwapUsage(job, inventoryProcess, process);
 							// Process Major Faults
 							copyInventoryMajorFaults(job, inventoryProcess, process);
+							// Process Rss
+							copyInventoryRss(job, inventoryProcess, process);
 						}
 						else {
 							logger.warn(methodName, jobId, processId, messages.fetch("process not found job's process table"));