(Migrated) UI extremly slow

(This message has been automatically imported from the retired mailing list)

Hello,

I have a staging server, with about 6 services, with not much load, the =
server load average is .10, with no process using more than 2% of the =
cpu, however the zato Admin is extremely slow, sometimes timing out, or =
throwing errors like this:

Could not invoke the method, e:[Traceback (most recent call last):
File =
"/opt/zato/1.1/zato-web-admin/src/zato/admin/web/views/scheduler.py", =
line 286, in index
response =3D req.zato.client.invoke(‘zato.scheduler.job.get-list’, =
{‘cluster_id’: req.zato.cluster_id})
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line =
377, in invoke
return self._invoke(async=3DFalse, *args, **kwargs)
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line =
374, in _invoke
return super(AnyServiceInvoker, self).invoke(dumps(request), =
ServiceInvokeResponse, async, headers, output_repeated)
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line =
311, in invoke
return self.inner_invoke(request, response_class, async, =
headers=3Dheaders)
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line =
297, in inner_invoke
self.max_cid_repr, self.logger, output_repeated)
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line =
226, in init
super(ServiceInvokeResponse, self).init(*args, **kwargs)
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line 69, =
in init
self.init()
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line =
165, in init
json =3D loads(self.inner.text)
File “/opt/zato/1.1/eggs/anyjson-0.3.3-py2.7.egg/anyjson/init.py”, =
line 135, in loads
return implementation.loads(value, *args, **kwargs)
File “/opt/zato/1.1/eggs/anyjson-0.3.3-py2.7.egg/anyjson/init.py”, =
line 99, in loads
return self._decode(s, *args, **kwargs)
ValueError: JSON parsing error at line 1, column 1 (position 0): =
Unexpected U+003C (<) while looking for .
or this:

Traceback (most recent call last): File =
"/opt/zato/1.1/zato-web-admin/src/zato/admin/web/views/init.py", =
line 221, in call response =3D self.invoke_admin_service() File =
"/opt/zato/1.1/zato-web-admin/src/zato/admin/web/views/init.py", =
line 186, in invoke_admin_service return =
self.req.zato.client.invoke(self.service_name, input_dict) File =
"/opt/zato/1.1/zato-client/src/zato/client/init.py", line 377, in =
invoke return self._invoke(async=3DFalse, *args, **kwargs) File =
"/opt/zato/1.1/zato-client/src/zato/client/init.py", line 374, in =
_invoke return super(AnyServiceInvoker, self).invoke(dumps(request), =
ServiceInvokeResponse, async, headers, output_repeated) File =
"/opt/zato/1.1/zato-client/src/zato/client/init.py", line 311, in =
invoke return self.inner_invoke(request, response_class, async, =
headers=3Dheaders) File =
"/opt/zato/1.1/zato-client/src/zato/client/init.py", line 297, in =
inner_invoke self.max_cid_repr, self.logger, output_repeated) File =
"/opt/zato/1.1/zato-client/src/zato/client/init.py", line 226, in =
init super(ServiceInvokeResponse, self).init(*args, **kwargs) =
File “/opt/zato/1.1/zato-client/src/zato/client/init.py”, line 69, =
in init self.init() File =
"/opt/zato/1.1/zato-client/src/zato/client/init.py", line 165, in =
init json =3D loads(self.inner.text) File =
"/opt/zato/1.1/eggs/anyjson-0.3.3-py2.7.egg/anyjson/init.py", line =
135, in loads return implementation.loads(value, *args, **kwargs) File =
"/opt/zato/1.1/eggs/anyjson-0.3.3-py2.7.egg/anyjson/init.py", line =
99, in loads return self._decode(s, *args, **kwargs) ValueError: JSON =
parsing error at line 1, column 1 (position 0): Unexpected U+003C (<) =
while looking for .

I have a scheduler to do the stats maintenance but that doesn=92t seem =
to improve anything,

All the services are working good, as the I can see the logs for each =
server, but I can=92t do anything with the UI, if I restart zato it =
seems to work fine for a while but after some time this same behavior =
starts to appear.

What can I do to improve the slowness of the UI?=

what exactly do you restart, which part of the environment? I use the
zato-qs-stop then zato-qs-start scripts, because the zato-qs-restart script
doesn’t fix the errors.

How long
after the restart does it start over? At random times, most often after 3-4
Horus, but sometimes it works fine until the next day or more

Does it concern all parts of the

web admin or any single one, or a few, in particular? At first the slowness
affect all the admin sections, services, connections, stats, etc, and later
I’m unable to access anything on the admin ui because I start getting
errors.
On Sep 16, 2014 2:30 AM, “Dariusz Suchojad” dsuch@zato.io wrote:

On 15/09/14 20:35, Ivan Villareal wrote:

All the services are working good, as the I can see the logs for each
server, but I can=E2=80=99t do anything with the UI, if I restart zato =
it seems

to work fine for a while but after some time this same behavior starts
to appear.

Hi Ivan,

what exactly do you restart, which part of the environment? How long
after the restart does it start over? Does it concern all parts of the
web admin or any single one, or a few, in particular?

thanks,


Dariusz Suchojad

https://zato.io
ESB, SOA, REST, APIs and cloud integrations in Python

On 15/09/14 20:35, Ivan Villareal wrote:

All the services are working good, as the I can see the logs for each
server, but I can’t do anything with the UI, if I restart zato it seems
to work fine for a while but after some time this same behavior starts
to appear.

Hi Ivan,

what exactly do you restart, which part of the environment? How long
after the restart does it start over? Does it concern all parts of the
web admin or any single one, or a few, in particular?

thanks,

On 15/09/14 20:35, Ivan Villareal wrote:

All the services are working good, as the I can see the logs for each
server, but I can’t do anything with the UI, if I restart zato it seems
to work fine for a while but after some time this same behavior starts
to appear.

Hi Ivan,

what exactly do you restart, which part of the environment? How long
after the restart does it start over? Does it concern all parts of the
web admin or any single one, or a few, in particular?

thanks,