-
1. Re: Wildfly async logger handler help
jamezp Jun 12, 2014 2:08 PM (in response to dannyruchman)At this point the best you could do is have a high queue-length number. Setting the overflow-action to DISCARD you will definitely lose messages. Setting to BLOCK it will block synchronously until there is room on the queue to add the message.
--
James R. Perkins
-
2. Re: Wildfly async logger handler help
wdfink Jun 12, 2014 4:04 PM (in response to dannyruchman)Is it possible that the filesystem where you write is slow? I saw people using shared filesystems which is not a good idea.
Maybe you use a fast (small) filesystem, log-file rotate and move/compress the old logs to a different store.
-
3. Re: Wildfly async logger handler help
dannyruchman Jun 16, 2014 4:26 AM (in response to wdfink)It is not a shared directory. I don't think the hardware is the problem here too. We have parallel hardware servers that run php code that does more or less the same which does not have this issue.
-
4. Re: Wildfly async logger handler help
dannyruchman Jun 16, 2014 5:37 AM (in response to jamezp)Hi James,
We would like to set this parameter to BLOCK to make sure data is not lost.
In our use case, those log files are the system output and we write a lot of them.
What is the Queue length parameter units? Is it bytes? kilo bytes?
How high can we set it and what can be the affect of high value?
We have 32GB RAM on our servers and java process is limited to 20 GB while never get full. We do not see full GC's never which means we do not have any memory allocation issues.
Can we give this Queue length parameter let's say - 1GB definition?
Thanks for your reply
Danny
-
5. Re: Wildfly async logger handler help
jamezp Jun 16, 2014 1:15 PM (in response to dannyruchman)The queue-length is the number of messages to store before it blocks or discards messages. If you set the queue-length to 100 then it will store up to 100 messages before it either blocks or discards messages.
--
James R. Perkins
-
6. Re: Wildfly async logger handler help
dannyruchman Jun 17, 2014 7:33 AM (in response to jamezp)Thank you