File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/com/quickserverlab/quickcached Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments