KingTermite
January 30th, 2003, 08:44 AM
I have a data logging app that recieves messages from any other app connected to it and logs the messages that the connected parties send to it.
Of course it can't log all the messages simultaneously, and they messages come in at an unknown (random) fashion. Therefore the logging app, buffers them and stores them to the disk file as quickly as it can.
I was stress testing this overnight last night and received this Java.lang.OutOfMemory exception when I came in. It effectively killed me logger app. I'm guessing the messages came in too quickly and the buffer of messages got so big that it ran out of memory quicker than it could remove the messages as it wrote them to disk.
Does anyone know this memory limit? Is this simply the Working Set Size that windows allocates, or is this a Java limit of memory that an app can allocate? Does anyone know what this limit is? Maybe I can work around it if I know the limit.
Thanks in Advance.
Of course it can't log all the messages simultaneously, and they messages come in at an unknown (random) fashion. Therefore the logging app, buffers them and stores them to the disk file as quickly as it can.
I was stress testing this overnight last night and received this Java.lang.OutOfMemory exception when I came in. It effectively killed me logger app. I'm guessing the messages came in too quickly and the buffer of messages got so big that it ran out of memory quicker than it could remove the messages as it wrote them to disk.
Does anyone know this memory limit? Is this simply the Working Set Size that windows allocates, or is this a Java limit of memory that an app can allocate? Does anyone know what this limit is? Maybe I can work around it if I know the limit.
Thanks in Advance.