Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to kill the aem instance running in background

AdobeID24
Level 6
Level 6

my instance is running if i access localhost:4502/crx/de/index.jsp ....but not jar file is open not start.bat file is ruuning over cmd ...i cant see any thing opened in my machine .

It means my instance is running in background .

How I can stop my aem instance to run in windows ?

0 Replies
ArpitVarshney
Community Advisor
Community Advisor

Hi,

It seems like AEM didn't stop properly.

Please open your command prompt and run below commmands

netstat -ano | findstr :4502

It will return you PID(note that down)

After that run the below command:

taskkill /PID <typeyourPIDhere> /F

Please refer this blog Windows Kill Process By PORT Number.

sunjot16
Employee
Employee

You can find the instance running in background/apps, by going to Task Manager (Ctrl + Shift + Esc) and there, if you find the AEM instance running in Apps as Java(TM) Platform SE binary, you can click on "End Task" after right-clicking on it.

berliant
Employee
Employee

you can find AEM process PID by using:

ps -ef | grep java | grep cq-quickstart

aemmarc
Employee
Employee

ProTip : If you need to manually kill the java process . ENSURE that AEM is not writing to disk or you risk data corruption.

So a quick way to do this is to check the segmentstore /crx-quickstart/repository/segmentstore and view the last modified timestamps on all the TAR files. Ensure that it hasn't written to disk in the last few minutes before you kill the process. Otherwise when you bring it back up you could have issues trying to mount the repository.

Cheers.