Tigase failed with error: Infinite loop detected in write(buff) TLS code
I installed Tigase XMPP server on ec2 instance (debian), when i'm trying to register the admin user via psi I got this error:
Infinite loop detected in write(buff) TLS code, tlsWrapper.getStatus(): NEED_READ
I read http://www.tigase.org/content/warning-infinite-loop-detected-writebuffbuff-tls-code-tlswrappergetstatus-needread and didn't understand what solve his problem.
These are the details:
Operating system you use - +Debian+
Hardware you use, CPU, RAM - +Amazon EC2 with m1.large instance+
Have you configured the OS properly for high load system? - +Start the tigase with ulimit -n (configuring it for more open files)+
Do you use any kind of firewalling in the OS kernel? - +Don't know+
Do you experience the problem from the very beginning or it just started suddenly at some point? Can you think of anything you could have changed which could trigger the problem? - +I experience the problem from the first user register. (there are 0 connection on the server)+
What clients do you use? Standalone, web client? - +psi+
What is the traffic on your system? Number of online users, average new user connections per second? Number of packets (presence, messages) going through the system per second? - +0 user connected. nothing else is running on this machine (this is an XMPP dedicated machine)+
What are the memory settings for JVM - +Don't know+
What is the CPU and RAM usage on your installation? - +I don't know if that's what you mean but when the tigase is running: CPU= 0.3 MEMORY=2.3+
Do you experience packet queues grow on your system, are there any packet loss, queues overflow - +no+
Do you use any custom code, plugins, and have checked performance on these plugins? Maybe the cause bottlenecks - +no+
Added by Artur Hefczyc over 5 years ago
The most important questions are:
What Tigase server version do you use?
What Java version do you use?
You should use the most recent stable version of the Tigase server or some recent beta from development line. As for Java I recommend the last update of Java6 from Oracle.
I suppose on Debian OpenJdk 7 might be a default one, and we have had some problems with it in the past.
Added by Andrzej Wójcik over 5 years ago
If I remember correctly we solved this issue by adding additional configuration paramter to Tigase XMPP Server.
If you would like to still use Java 7, you should add line containing
etc/init.properties file, a workaround for using new TLS/SSL implementation in Java 7 and not fully compatible SSL/TLS libraries on client side would be activated then.