Skip to main content
1-Visitor
January 19, 2016
Question

Log Archive folder size increase due to Websocket Exception

  • January 19, 2016
  • 1 reply
  • 1586 views

Hi,

I am doing a very simple example using javasdk to connect to thingworx.I created Thing that inherit remote thing template and i do remote binding with remote Thing, that is it.  Thingworx keep logging files every 10 seconeds in the path \ThingworxStorage\logs\archives, each file is about 100MB. The log files contains only one exception thrown all the time as below;

2016-01-19 11:35:43.977+0200 [L: WARN] [O: c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-apr-8080-exec-3] Server WebSocket closed unexpectedly and has already been unregistered from Server Endpoint [ws session id: 0] The socket [568,280,224] associated with this connection has been closed.

It will not stop logging files until i stop the tomcat or the drive is full.

Environment:

​OS: Windows 10

Tomcat 9.0

Thingworx 5.4.0.445

1 reply

1-Visitor
January 20, 2016

Hi

Can you share your code with us? That may give us a pointer to what is happening.

Regards

Ian

asoliman1-VisitorAuthor
1-Visitor
January 20, 2016

Attached the java code but even i stop running the code the server still generating the exception. When restart tomcat no exception logged until i run the code again, it binds properties correctly then after few minutes it start log exception again.