Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to monitor number of concurrent authors?

Avatar

Level 3

Hello all,

We have been investigating the possibility of using MongoMK for our Author instances, and have decided to continue using TarMK until we absolutely have to switch. One of the suggested Mongo requirements is if you get above 100 concurrent authors. How can you monitor the number of concurrent authors?

Thank you,

Andrew

1 Accepted Solution

Avatar

Correct answer by
Level 5

You can try below commands -------------------------------------------------------------------

To see the number of authors that have used the system since installation use the command line:
cd <cq-installation-dir>/crx-quickstart/logs

cut -d " " -f 3 access.log | sort -u | wc -l

To see the number of authors working on a given date:

grep "<date>" access.log | cut -d " " -f 3 | sort -u | wc -l

View solution in original post

4 Replies

Avatar

Level 9

Hi Andrew,

Every request in aem is atomic & you need to integrated with any idp (saml...) to get the concurrent monitor validation Or need custom implementation.    Other workarounds like  /system/console/tokenmgr Or parsing logs really not scale out well from personal implementation experience.

Thanks,

Avatar

Correct answer by
Level 5

You can try below commands -------------------------------------------------------------------

To see the number of authors that have used the system since installation use the command line:
cd <cq-installation-dir>/crx-quickstart/logs

cut -d " " -f 3 access.log | sort -u | wc -l

To see the number of authors working on a given date:

grep "<date>" access.log | cut -d " " -f 3 | sort -u | wc -l

Avatar

Level 3

Thanks - will they scale up to ~100 users okay? We're mostly worried about that threshold in particular

Avatar

Level 3

Thanks Sandeep, that actually really helps. It looks like we've only had 80 unique users in the last week, and the highest was 58 in one day. It's safe to say we're under the 100 concurrent user threshold. We'll have to look into better ways to watch concurrent users.