Re: Performance monitoring for exist

Dannes Wessels <[email protected]> Thu, 29 May 2025 22:18:42 +0200
Newsgroups gmane.text.xml.exist
Message-ID <[email protected]>
--===============5030688669268688809==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_A7D25CC4-6DA1-427A-830A-627800BB1857"


--Apple-Mail=_A7D25CC4-6DA1-427A-830A-627800BB1857
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Willem,

Long time no see!


> On 22 May 2025, at 15:50, Willem van der Westhuizen =
<[email protected]> wrote:
>=20
> 1. Is it possible to access the $jmx object from outside existdb as in =
the snippet below. Any pointers for us to look
>=20
> <instance name=3D"localhost"
>     url=3D"http://localhost:8080/exist"
>     token=3D=E2=80=9C3268b570-xxxxxxx" cron=3D"0 * * * * ?">
>     <poll cron=3D"0/30 * * * * ?" store=3D"yes">
>     <alert name=3D"More than 30 threads waiting for locks to be =
released"
>         condition=3D"count($jmx//LockManager/WaitingThreads/row) > =
30=E2=80=9D/

Initially I did not recognize the snippet :-)  I=E2=80=99d recommend to =
use the JMX endpoint on=20

http://<hostname<:8080/exist/status?token=3D<yourToken>=20

for the full XML file, the output can be trimmed with some parameters =
like

=
http://<hostname>:8080/exist/status?c=3Dinstances&c=3Dprocesses&c=3Dlockin=
g&c=3Dmemory&c=3Dcaches&c=3Dsystem&c=3Doperatingsystem&token=3D<token>

See https://exist-db.org/apps/doc/jmx for more details.

HTH

With kind regards

Dannes


--Apple-Mail=_A7D25CC4-6DA1-427A-830A-627800BB1857
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">Hi =
Willem,<div><br></div><div>Long time no =
see!</div><div><br></div><div><br><div><blockquote type=3D"cite"><div>On =
22 May 2025, at 15:50, Willem van der Westhuizen =
&lt;[email protected]&gt; wrote:</div><div><div><br>1. Is it possible to =
access the $jmx object from outside existdb as in the snippet below. Any =
pointers for us to look<br><br>&lt;instance =
name=3D"localhost"<br>&nbsp;&nbsp;&nbsp; =
url=3D"http://localhost:8080/exist"<br>&nbsp;&nbsp;&nbsp; =
token=3D=E2=80=9C3268b570-xxxxxxx" cron=3D"0 * * * * =
?"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;poll cron=3D"0/30 * * * * ?" =
store=3D"yes"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;alert name=3D"More than 30 =
threads waiting for locks to be =
released"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
condition=3D"count($jmx//LockManager/WaitingThreads/row) &gt; =
30=E2=80=9D/</div></div></blockquote><div><br></div><div>Initially I did =
not recognize the snippet :-) &nbsp;I=E2=80=99d recommend to use the JMX =
endpoint =
on&nbsp;</div><div><br></div><div>http://&lt;hostname&lt;:8080/exist/statu=
s?token=3D&lt;yourToken&gt;&nbsp;</div><div><br></div><div>for the full =
XML file, the output can be trimmed with some parameters =
like</div><div><br></div><div>http://&lt;hostname&gt;:8080/exist/status?c=3D=
instances&amp;c=3Dprocesses&amp;c=3Dlocking&amp;c=3Dmemory&amp;c=3Dcaches&=
amp;c=3Dsystem&amp;c=3Doperatingsystem&amp;token=3D&lt;token&gt;<br></div>=
<div><br></div><div>See&nbsp;<a =
href=3D"https://exist-db.org/apps/doc/jmx">https://exist-db.org/apps/doc/j=
mx</a>&nbsp;for more =
details.</div><div><br></div><div>HTH</div><div><br></div><div>With kind =
regards</div><div><br></div><div>Dannes</div></div><br></div></body></html=
>=

--Apple-Mail=_A7D25CC4-6DA1-427A-830A-627800BB1857--


--===============5030688669268688809==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5030688669268688809==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open

--===============5030688669268688809==--