tomcat server slow start for each page- 1+ minute

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

tomcat server slow start for each page- 1+ minute

Post by swiftinitpvtltd »

Suddenly our tomcat server is doing slow start for few pages(login, forget password)- 1+ minute
It waits for port 9000 connecting and after 1 minute it loads any page.
waits for port 9000 connecting - did anyone saw this issue before on tomcat?

Strange thing is Once after login then subsequent aware query operations connecting to mysql db are not slow.


The same issue is happening for CRM sample app. Just before login it takes 1 minute. Its building a session-connecting to port 9000 taking 1+ minute. After login everything is fast. So its not specific BSV issue as both BSV's showing same issue.
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Re: tomcat server slow start for each page- 1+ minute

Post by cishpix »

Do you run it in Linux, right?

I have face this issue too, try restart the server or AwareIM, update the AwareIM, create new one folder but the error still same but now I have fixed it.
Regards,

Suwandy
-----------------
Kisaran - Indonesia
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: tomcat server slow start for each page- 1+ minute

Post by swiftinitpvtltd »

Thanks cishpix. Its on windows 2016 server. We tried restarting entire server, aware IM and tomact but issue remains the same. On login user waits for 1 minute-log shows listening to 9000 port, once login everything is fast.
same for guest user forget password-takes 1 minute to load forget password.
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Re: tomcat server slow start for each page- 1+ minute

Post by cishpix »

You're right. When you login, the AwareIM status always said connecting to port 9000 and then will delay for 1-2 mins. After that you can connect into your AwareIM server but when you logout and try login again, the problem is back again.

When you didn't connect, try see your AwareIM status log, is like the below image?
AIM-issue.jpeg
AIM-issue.jpeg (240.43 KiB) Viewed 10426 times
Regards,

Suwandy
-----------------
Kisaran - Indonesia
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: tomcat server slow start for each page- 1+ minute

Post by swiftinitpvtltd »

we have the same error....


LoginListener: Exception thrown handling socket.
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:209)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
at java.io.LineNumberReader.readLine(LineNumberReader.java:201)
at com.bas.basserver.bsmanager.K.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: tomcat server slow start for each page- 1+ minute

Post by swiftinitpvtltd »

Now luckily everything is just fine today and its fast on login!

May be it was because of global phenomenon in china there was a storm and in US there was a cold weather but finally onset of summer in India balanced the things out and now tomcat server is just balanced with calm. Who knows but now its all good :) . :D
Jaymer
Posts: 2450
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: tomcat server slow start for each page- 1+ minute

Post by Jaymer »

I had this happen 3 times yesterday. Twice today so far.
I run ConfigTool on a PC connected to remote server.

I notice it first after "Going to Test / Alt-Q" on PC.
Then after switching to Browser, I refresh and nothing happens.

Sometimes I go back to Config and Reconnect to Server (makes me re-enter password).
This sometimes reconnects, other times hangs for minutes.

Right now, I'm going to have to restart Aware on server.
But 2 prior times it corrected itself.

LoginListener: Exception thrown handling socket.
java.lang.NullPointerException
at com.bas.connectionserver.server.ConnectionFactory.isLocalConnection(ConnectionFactory.java:860)
at com.bas.basserver.bsmanager.K.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
LoginListener: Exception thrown handling socket.
java.lang.NullPointerException
at com.bas.connectionserver.server.ConnectionFactory.isLocalConnection(ConnectionFactory.java:860)
at com.bas.basserver.bsmanager.K.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
LoginListener: Exception thrown handling socket.
java.lang.NullPointerException
at com.bas.connectionserver.server.ConnectionFactory.isLocalConnection(ConnectionFactory.java:860)
at com.bas.basserver.bsmanager.K.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
LoginListener: Exception thrown handling socket.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
ACDC
Posts: 1142
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: tomcat server slow start for each page- 1+ minute

Post by ACDC »

Change port 9000 to something else, the problem is bound to go away. Sometimes other elements interfere with port 9000 and this results in long login times or no login at all. Also, make sure it's not open for incoming in the firewall
Post Reply