Skip to content

Commit 081f8fd

Browse files
Akshathkumar ShettyAkshathkumar Shetty
authored andcommitted
Improved
1 parent 4b9f4ad commit 081f8fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/com/quickserverlab/quickcached/QuickCached.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ public static void main(String args[]) throws Exception {
5454

5555

5656
String confFile = "conf" + File.separator + "QuickCached.xml";
57-
Object config[] = new Object[]{confFile};
58-
59-
printMemoryInfo();
57+
Object config[] = new Object[]{confFile};
6058

6159
quickcached = new QuickServer();
6260
quickcached.initService(config);
@@ -113,6 +111,8 @@ public static void main(String args[]) throws Exception {
113111
try {
114112
if (quickcached != null) {
115113
quickcached.startServer();
114+
115+
printMemoryInfo();
116116
}
117117
} catch (AppException e) {
118118
System.out.println("Error starting server : " + e);
@@ -144,8 +144,9 @@ private static void printMemoryInfo() {
144144
long heapMaxSize = Runtime.getRuntime().maxMemory();
145145

146146
int memPercentUsed = (int) (100.0*usedMemory/heapMaxSize);
147-
System.out.println("Memory Alloted : "+getMemSize(allotedMemory));
148-
System.out.println("Memory Max : "+getMemSize(heapMaxSize));
147+
System.out.println("Memory Allotted : "+getMemSize(allotedMemory));
148+
System.out.println("Memory Maximum : "+getMemSize(heapMaxSize));
149+
System.out.println("");
149150
}
150151

151152
private static String pid = null;

0 commit comments

Comments
 (0)