How to list cache-keys in payara-micro 5

7 views
Skip to first unread message

Rohit Singh

unread,
Apr 5, 2021, 1:33:49 AM4/5/21
to payara...@googlegroups.com
Hello Community Members,

We have deployed 3 payara-micro 5 nodes in the cluster with enabled hazelcast data grid storage and added payara-server lite members to put the session id in payara-micro.

Can anyone please help me how to check session stored in hazelcast DG.
In Payara server, it was like, got to appserver/bin/ and run asadmin list-cache-keys which can list down the sessionstored for the particular web application.

How can we see same thing in payara-micro 5.


Thank you in advance,
Rohit

Ondro Mihályi

unread,
Apr 5, 2021, 8:15:43 AM4/5/21
to Rohit Singh, Payara Forum
If you can connect Payara Server to your Payara Micro instances, then you can send asadmin command to them from the Payara Server Admin Console: https://docs.payara.fish/community/docs/5.2021.1/documentation/payara-micro/asadmin/send-asadmin-commands.html.

There’s no other way to execute asadmin commands externally. You can execute them from a deployed app using Payara Micro API though but that requires some coding and restarting your application.

Ondro

Dňa po 5. 4. 2021, 7:33 Rohit Singh <rohitro...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/CAFyYZvokF51gDTE-s7OjtuTj9Y%2BMCytfrrG-fpzCQ-M6JUjX-g%40mail.gmail.com.

Rohit Singh

unread,
Apr 5, 2021, 2:00:29 PM4/5/21
to Ondro Mihályi, Payara Forum
Thank you for your response. 

But we don't have asadmin in payara-micro. 
Do we have any other option to list-cache-keys? 


Thanks & Regards, 
Rohit

Ondro Mihályi

unread,
Apr 5, 2021, 4:39:44 PM4/5/21
to Rohit Singh, Payara Forum
I linked to the documentation page, which explains that you must start Payara Server and connect it to Payara Micro. Then you can run asadmin commands on Payara Micro from Payara Server. Payara Micro itslef doesn't have the asadmin command.

Ondro

Dňa po 5. 4. 2021, 20:00 Rohit Singh <rohitro...@gmail.com> napísal(a):

Rohit Singh

unread,
Apr 6, 2021, 12:53:44 AM4/6/21
to Ondro Mihályi, Payara Forum
Thank you Ondro,

Is there any way to get it direct from payara-micro?


Thanks & Regards,
Rohit 
Reply all
Reply to author
Forward
0 new messages