
I figured this out. SimpleSocketServer ran out of memory. On Fri, Feb 12, 2016 at 2:52 PM, Tara Czutno <javaworkinggirl@gmail.com> wrote:
I have 3 servers with various java process, I want all processes to write to one log on machineA. I am doing a load test with a lot of logging, but it appears logging from the main process has stopped. Is there a way to check for logback status? Is the setup below the correct way to go about having one log?
I set this up so SimpleSocketServer is running with this config:
<configuration scan="true" scanPeriod="60 seconds"> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>/opt/twc/logs/ecp.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>/opt/twc/logs/ecp.log.%d{yyyy-MM-dd}</fileNamePattern> <maxHistory>30</maxHistory> </rollingPolicy>
<encoder> <pattern>%d{ISO8601} %-14mdc{application} %-5level [%t] %logger{100} - %msg%n %xEx</pattern> <immediateFlush>false</immediateFlush> </encoder> </appender>
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"> <queueSize>100000</queueSize> <discardingThreshold>0</discardingThreshold> <includeCallerData>true</includeCallerData> <maxFlushTime>5000</maxFlushTime> <appender-ref ref="FILE"/> </appender>
<root level="DEBUG"> <appender-ref ref="ASYNC"/> </root> </configuration>
All other processes are running with this config:
<configuration>
<appender name="SOCKET" class="ch.qos.logback.classic.net.SocketAppender"> <remoteHost>ecplogger</remoteHost> <port>6000</port> <reconnectionDelay>5 seconds</reconnectionDelay> <includeCallerData>true</includeCallerData> <queueSize>100000</queueSize> <eventDelayLimit>100 milliseconds</eventDelayLimit> </appender>
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"> <queueSize>100000</queueSize> <discardingThreshold>0</discardingThreshold> <includeCallerData>true</includeCallerData> <maxFlushTime>5000</maxFlushTime> <appender-ref ref="SOCKET"/> </appender>
<root level="ALL"> <appender-ref ref="ASYNC"/> </root>
</configuration>