# Unable remote debug my plugin installed in Elasticsearch in remote VM

**URL:** <https://discuss.elastic.co/t/unable-remote-debug-my-plugin-installed-in-elasticsearch-in-remote-vm/252411>\
**Category:** Elasticsearch\
**Created:** [October 17, 2020, 7:50am UTC](https://discuss.elastic.co/t/unable-remote-debug-my-plugin-installed-in-elasticsearch-in-remote-vm/252411 "2020-10-17T07:50:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccnoufal](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@ccnoufal](https://discuss.elastic.co/u/ccnoufal)\
**Post date:** [October 17, 2020, 7:50am UTC](https://discuss.elastic.co/t/unable-remote-debug-my-plugin-installed-in-elasticsearch-in-remote-vm/252411/1 "2020-10-17T07:50:58Z")

</div>

I unable remote debug my plugin installed in Elasticsearch in remote VM  
in eclipse I am getting following error message in popup

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/8/18a63bb15ca96f24e74ba5aae0b754c8e970f1fa.png)

I have added following line in jvm.options file.

`-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005`

But still I am unable to get connect the elastic search from my eclipse.  
But I am able to connect my localhost elasticsearch with same debug configuration.  
Please find my remote debug configuration in eclipse below.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/8/9897b77485b18f3fc8c5f8c83b9f8d07d88fb3c2.png)  
Also elastic search console part is here to show the server is listening to the same port  
ava HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
Listening for transport dt\_socket at address: 5005  
[2020-10-17T13:16:02,977][DEBUG][o.e.b.JNAKernel32Library] [10.125.247.5] windows/Kernel32 library loaded

Shall I do anything extra here only for hosted vm?  
I have already installed plugin in elasticsearch which I am trying to debug

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [October 17, 2020, 10:43am UTC](https://discuss.elastic.co/t/unable-remote-debug-my-plugin-installed-in-elasticsearch-in-remote-vm/252411/2 "2020-10-17T10:43:50Z")

</div>

Make sure that port 5005 is firewall allowed on your 10.125.247.5 VM

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 14, 2020, 10:43am UTC](https://discuss.elastic.co/t/unable-remote-debug-my-plugin-installed-in-elasticsearch-in-remote-vm/252411/3 "2020-11-14T10:43:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
