Author: dkulp
Date: Fri Jan 17 15:45:52 2014
New Revision: 1559156

URL: http://svn.apache.org/r1559156
Log:
Put a limit on the size of the output we record to limit memory usage for 
longer running tests that spit out a ton of info.

Modified:
    
cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java

Modified: 
cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java?rev=1559156&r1=1559155&r2=1559156&view=diff
==============================================================================
--- 
cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
 (original)
+++ 
cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
 Fri Jan 17 15:45:52 2014
@@ -327,6 +327,9 @@ public class ServerLauncher {
                             ps.flush();
                         }
                     }
+                    if (serverOutputAll.length() > 64000) {
+                        serverOutputAll.delete(0, 10000);
+                    }
                 }
             } catch (IOException ex) {
                 if (!ex.getMessage().contains("Stream closed")) {


Reply via email to