Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Amlen » 30% cpu usage
30% cpu usage [message #1853697] Wed, 13 July 2022 20:21 Go to next message
Janusz Jęczmionka is currently offline Janusz JęczmionkaFriend
Messages: 2
Registered: July 2022
Junior Member
Hi,

I have compiled Amlen on OpenSuse Leap 15.4 and when I started imaserver it consume ca. 30% CPU and 2.5Gb memory. Is it normal?

EDIT: idle state, no consumers no publishers
---
jjanusz

[Updated on: Wed, 13 July 2022 20:29]

Report message to a moderator

Re: 30% cpu usage [message #1853731 is a reply to message #1853697] Fri, 15 July 2022 09:24 Go to previous messageGo to next message
Jon Levell is currently offline Jon LevellFriend
Messages: 21
Registered: July 2021
Junior Member
Amlen does preallocate a lot of memory. On my dev box with 70G on RAM, top output looks like:
31732 root 20 0 4768464 1.7g 9900 S 0.0 2.4 4:14.64 imaserver
(It should preallocate less ram on less huge boxes).

The CPU is surprising though, as you can see above it is using 0.0 of my CPU.

If you do:
export IMA_ADMIN=https://127.0.0.1:9089/ima/v1
export IMA_USER="admin:admin"
curl -m 10 -u "${IMA_USER}" -k -X GET "${IMA_ADMIN}/service/status/Server"
What does the output look like?

If you can't spot the issue, I'd run the gstack command against the process a few times a few seconds apart and see from the stack traces what it is doing.


If you post the stack traces here (or even better on #amlen on our slack:
https://join.slack.com/t/eclipse-iot-wg/shared_invite/zt-qo78fwls-Hre7lBgDLP_h9YB~noz4qg

I'm happy to take a look.

(You might also like to turn the diagnostics all the way up:
curl -m 10 -u "${IMA_USER}" -k -X POST -d '{"TraceLevel" : "9"}' "${IMA_ADMIN}/configuration"
and then look at imatrace.log under /var/lib/amlen-server/diag/logs
(I'd restart the server so you get a complete log of its startup)
Re: 30% cpu usage [message #1853732 is a reply to message #1853731] Fri, 15 July 2022 12:58 Go to previous message
Janusz Jęczmionka is currently offline Janusz JęczmionkaFriend
Messages: 2
Registered: July 2022
Junior Member
See you on slack.

--
jjanusz
Previous Topic:Amlen 1.0.0.1 is now available
Next Topic:Amlen to IBM Watson message gateway differences?
Goto Forum:
  


Current Time: Tue Apr 16 08:25:22 GMT 2024

Powered by FUDForum. Page generated in 0.17406 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top