When we use the james mail server for sending & receiving mail. then after some time IMAP of james stop responding.
It do not give any exception in james log. From mail client i get socket read timeout error.
Then we have to restart the james to make it working again
When we use POP3 Instead of IMAP. Then james works fine.
To reproduce this quickly.
I created a sample mail client which do repeatedly - login, load inbox , send mail, logout . And this issue occurs in max 15 min.
I have attached sample test program.