sdeboy 2003/06/04 12:14:01
Modified: src/java/org/apache/log4j/net MulticastAppender.java
MulticastReceiver.java UDPAppender.java
UDPReceiver.java
Log:
hit the 8192 event size limit when starting jboss and using the multicast
appender/receiver.
increased packet size to 16384...workaround..doesn't resolve the problem of events >
16384 in the receivers and the fact that they can't parse the xml...
also ends up with a lot more network traffic than needed for the most part..need to
go back and look more intelligently at send/receive buffers and event parsing from
xml...
can probably use xmlsocketnode as an example of how to deal with this issue more
intelligently and use smaller send/receive buffers
Revision Changes Path
1.4 +1 -1
jakarta-log4j-sandbox/src/java/org/apache/log4j/net/MulticastAppender.java
Index: MulticastAppender.java
===================================================================
RCS file:
/home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/net/MulticastAppender.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MulticastAppender.java 4 Jun 2003 18:43:37 -0000 1.3
+++ MulticastAppender.java 4 Jun 2003 19:14:00 -0000 1.4
@@ -86,7 +86,7 @@
*/
static final int DEFAULT_PORT = 9991;
- private static final int PACKET_LENGTH = 8192;
+ private static final int PACKET_LENGTH = 16384;
/**
The default reconnection delay (30000 milliseconds or 30 seconds).
1.8 +1 -1
jakarta-log4j-sandbox/src/java/org/apache/log4j/net/MulticastReceiver.java
Index: MulticastReceiver.java
===================================================================
RCS file:
/home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/net/MulticastReceiver.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- MulticastReceiver.java 20 May 2003 11:50:40 -0000 1.7
+++ MulticastReceiver.java 4 Jun 2003 19:14:00 -0000 1.8
@@ -75,7 +75,7 @@
*
*/
public class MulticastReceiver extends Receiver {
- private static final int PACKET_LENGTH = 8192;
+ private static final int PACKET_LENGTH = 16384;
private boolean isActive = false;
private int port;
private String address;
1.5 +1 -1
jakarta-log4j-sandbox/src/java/org/apache/log4j/net/UDPAppender.java
Index: UDPAppender.java
===================================================================
RCS file:
/home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/net/UDPAppender.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- UDPAppender.java 4 Jun 2003 18:43:38 -0000 1.4
+++ UDPAppender.java 4 Jun 2003 19:14:00 -0000 1.5
@@ -88,7 +88,7 @@
*/
static final int DEFAULT_PORT = 9991;
- private static final int PACKET_LENGTH = 8192;
+ private static final int PACKET_LENGTH = 16384;
/**
The default reconnection delay (30000 milliseconds or 30 seconds).
1.9 +1 -1
jakarta-log4j-sandbox/src/java/org/apache/log4j/net/UDPReceiver.java
Index: UDPReceiver.java
===================================================================
RCS file:
/home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/net/UDPReceiver.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- UDPReceiver.java 20 May 2003 11:50:40 -0000 1.8
+++ UDPReceiver.java 4 Jun 2003 19:14:00 -0000 1.9
@@ -72,7 +72,7 @@
*
*/
public class UDPReceiver extends Receiver {
- private static final int PACKET_LENGTH = 8192;
+ private static final int PACKET_LENGTH = 16384;
//default to log4j xml decoder
private String decoder = "org.apache.log4j.xml.XMLDecoder";
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]