Skip to main content
17-Peridot
December 8, 2015
Question

Tomcat Restart

  • December 8, 2015
  • 3 replies
  • 10642 views

I have come across a scenerio multiple times,where my application get stuck or stops responding and restarting Apache Tomcat resolves that.

-Why we need to restart tomcat always to overcome this issue?

-What are the possible reasons of application failure or zero response while in a production environment?

-Are there any resolutions for this problem and to avoid force restart of Tomcat server in a production environment?

Please provide your valuable feedback/Inputs.

Thanks in advance!

3 replies

1-Visitor
December 8, 2015

Hi Tarun,

It could be a whole host of different things - Do you see any exceptions in the catalina logs?


James

Cryptosoft Ltd

TanmeyTWX17-PeridotAuthor
17-Peridot
December 8, 2015

Hi James,

I don't have anything deployed on Tomcat Apache except ThingWorx.And I don't see exceptions in catalina logs but one.i.e

"java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.thingworx.types.InfoTable"

TanmeyTWX17-PeridotAuthor
17-Peridot
December 8, 2015

Do I need to alter any Tomcat configurations to keep it alive all the time and to avoid force restart?

1-Visitor
December 9, 2015

Can you monitor the memory and the cpu usage of tomcat ? Are there some scripts which consume a lot of resources or which block other script ?

By the way, I wonder how ThingWork manages the concurrent threads.

1-Visitor
February 26, 2016

Hello,

I know it is a bit old but i wa wondering if you managed to do anything about your problem ?

I had the same problem and it was ALWAYS because I was loading too much data. For instance, if you fill an Infotable with 10 000 rows of data, Thingworx will just crash.

And this problem is even more present with the Neo4J version.

1-Visitor
February 26, 2016

Hi,

Do you give Tomcat more memory than the maximum memory of your machine/VM ? It's declared in "setenv.sh", "Xmx...". If the memory is allocated correctly, the processing will take time but ThingWorx won't crash.

1-Visitor
February 26, 2016

no, that is what i thought at first...

But after some researches, it seems that Neo4J is causing troubles with big loads of data.