How to kill the aem instance running in background

Avatar

Avatar

AdobeID24

Avatar

AdobeID24

AdobeID24

23-09-2019

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 ?

Replies

Avatar

Avatar

ArpitVarshney

MVP

Avatar

ArpitVarshney

MVP

ArpitVarshney
MVP

23-09-2019

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.

Avatar

Avatar

sunjot16

Employee

Avatar

sunjot16

Employee

sunjot16
Employee

23-09-2019

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.

Avatar

Avatar

berliant

Employee

Avatar

berliant

Employee

berliant
Employee

23-09-2019

you can find AEM process PID by using:

ps -ef | grep java | grep cq-quickstart

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

23-09-2019

You might want to check services if AEM is started as a windows service. Check [1] for more details.

[1] https://aemexperts.blogspot.com/2019/03/installing-and-starting-adobe.html

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

24-09-2019

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.