Starting instances with numactl

36 views
Skip to first unread message

VictorSTS

unread,
Feb 10, 2021, 2:26:35 PM2/10/21
to Payara Forum
Hello,

I would like to test the performance of my app with/without numa affinity. Currently I have one domain with 3 instances and use systemd to start all them on boot using asadmin.

Is there any way to instruct Payara to start the instance with a given numastat command line? Maybe using some kind of wrapper script?

Thanks a lot.
Victor.

Rudy De Busscher

unread,
Feb 20, 2021, 4:19:56 AM2/20/21
to Payara Forum
Hi Victor,

Not familiar with numastat but I assume you can create a Cron alike job that checks/parses the output of numastat and executes the asadmin command to start up the instance when you see high memory usage.

instead of numastat, you can also consider the Java jcmd tool (included in JDK distribution) to have a more Java-centric view on the Heap.


>jcmd ASMain GC.heap_info

30691:

 PSYoungGen      total 141312K, used 45605K [0x00000007b5580000, 0x00000007bff00000, 0x00000007c0000000)

  eden space 110080K, 34% used [0x00000007b5580000,0x00000007b7a89000,0x00000007bc100000)

  from space 31232K, 24% used [0x00000007be080000,0x00000007be800738,0x00000007bff00000)

  to   space 31744K, 0% used [0x00000007bc100000,0x00000007bc100000,0x00000007be000000)

 ParOldGen       total 349696K, used 73369K [0x00000007a0000000, 0x00000007b5580000, 0x00000007b5580000)

  object space 349696K, 20% used [0x00000007a0000000,0x00000007a47a6468,0x00000007b5580000)

 Metaspace       used 94217K, capacity 108757K, committed 108800K, reserved 1142784K

  class space    used 12107K, capacity 15855K, committed 15872K, reserved 1048576K


Hopes this helps

Best regards

Rudy

Reply all
Reply to author
Forward
0 new messages