Debugging in IntelliJ of AKS application run on JBoss disconnects with no reason












0















I have my application deployed on AKS cluster. The application is run on JBoss application server. It is run on the image that is based on registry.access.redhat.com/jboss-eap-7/eap71-openshift image. I want to be able to debug this application from IntelliJ.



I added variable DEBUG set to "true" to Dockerfile:



ENV DEBUG "true"


I also exposed port 8787 in the yaml deployment configuration. I try to debug application from IntelliJ, configuring remote application (I paste in the host IP and port 8787).



yaml deployment configuration looks as follows:



apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: myapp
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: myacr.azurecr.io/myapp:wojtek
ports:
- containerPort: 8080
- containerPort: 8787
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
type: LoadBalancer
sessionAffinity: ClientIP
ports:
- port: 8080
name: http
- port: 8787
name: debug
selector:
app: myapp


I can see in the logs of JBoss that until I connect with JBoss there is information:



Debugger failed to attach: timeout during handshake


Then I connect with debugger and get information in IntelliJ that debugger is connected. Unfortunately, it doesn't catch anything and after ca. 10-15 seconds it gets disconnected.



What is the reason? Has anyone of you ever debugged application run on AKS cluster? Thank you in advance!



EDIT:



There is my debug configuration:



debug configuration










share|improve this question

























  • May i have the debug config settings u try in Intellij Idea

    – Nipuna Priyamal
    Jan 3 at 8:42











  • @NipunaPriyamal I edited my post in order to add settings you requested

    – wojtek1902
    Jan 3 at 14:16
















0















I have my application deployed on AKS cluster. The application is run on JBoss application server. It is run on the image that is based on registry.access.redhat.com/jboss-eap-7/eap71-openshift image. I want to be able to debug this application from IntelliJ.



I added variable DEBUG set to "true" to Dockerfile:



ENV DEBUG "true"


I also exposed port 8787 in the yaml deployment configuration. I try to debug application from IntelliJ, configuring remote application (I paste in the host IP and port 8787).



yaml deployment configuration looks as follows:



apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: myapp
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: myacr.azurecr.io/myapp:wojtek
ports:
- containerPort: 8080
- containerPort: 8787
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
type: LoadBalancer
sessionAffinity: ClientIP
ports:
- port: 8080
name: http
- port: 8787
name: debug
selector:
app: myapp


I can see in the logs of JBoss that until I connect with JBoss there is information:



Debugger failed to attach: timeout during handshake


Then I connect with debugger and get information in IntelliJ that debugger is connected. Unfortunately, it doesn't catch anything and after ca. 10-15 seconds it gets disconnected.



What is the reason? Has anyone of you ever debugged application run on AKS cluster? Thank you in advance!



EDIT:



There is my debug configuration:



debug configuration










share|improve this question

























  • May i have the debug config settings u try in Intellij Idea

    – Nipuna Priyamal
    Jan 3 at 8:42











  • @NipunaPriyamal I edited my post in order to add settings you requested

    – wojtek1902
    Jan 3 at 14:16














0












0








0








I have my application deployed on AKS cluster. The application is run on JBoss application server. It is run on the image that is based on registry.access.redhat.com/jboss-eap-7/eap71-openshift image. I want to be able to debug this application from IntelliJ.



I added variable DEBUG set to "true" to Dockerfile:



ENV DEBUG "true"


I also exposed port 8787 in the yaml deployment configuration. I try to debug application from IntelliJ, configuring remote application (I paste in the host IP and port 8787).



yaml deployment configuration looks as follows:



apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: myapp
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: myacr.azurecr.io/myapp:wojtek
ports:
- containerPort: 8080
- containerPort: 8787
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
type: LoadBalancer
sessionAffinity: ClientIP
ports:
- port: 8080
name: http
- port: 8787
name: debug
selector:
app: myapp


I can see in the logs of JBoss that until I connect with JBoss there is information:



Debugger failed to attach: timeout during handshake


Then I connect with debugger and get information in IntelliJ that debugger is connected. Unfortunately, it doesn't catch anything and after ca. 10-15 seconds it gets disconnected.



What is the reason? Has anyone of you ever debugged application run on AKS cluster? Thank you in advance!



EDIT:



There is my debug configuration:



debug configuration










share|improve this question
















I have my application deployed on AKS cluster. The application is run on JBoss application server. It is run on the image that is based on registry.access.redhat.com/jboss-eap-7/eap71-openshift image. I want to be able to debug this application from IntelliJ.



I added variable DEBUG set to "true" to Dockerfile:



ENV DEBUG "true"


I also exposed port 8787 in the yaml deployment configuration. I try to debug application from IntelliJ, configuring remote application (I paste in the host IP and port 8787).



yaml deployment configuration looks as follows:



apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: myapp
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: myacr.azurecr.io/myapp:wojtek
ports:
- containerPort: 8080
- containerPort: 8787
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
type: LoadBalancer
sessionAffinity: ClientIP
ports:
- port: 8080
name: http
- port: 8787
name: debug
selector:
app: myapp


I can see in the logs of JBoss that until I connect with JBoss there is information:



Debugger failed to attach: timeout during handshake


Then I connect with debugger and get information in IntelliJ that debugger is connected. Unfortunately, it doesn't catch anything and after ca. 10-15 seconds it gets disconnected.



What is the reason? Has anyone of you ever debugged application run on AKS cluster? Thank you in advance!



EDIT:



There is my debug configuration:



debug configuration







java debugging intellij-idea jboss azure-aks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 at 14:15







wojtek1902

















asked Jan 3 at 7:55









wojtek1902wojtek1902

909




909













  • May i have the debug config settings u try in Intellij Idea

    – Nipuna Priyamal
    Jan 3 at 8:42











  • @NipunaPriyamal I edited my post in order to add settings you requested

    – wojtek1902
    Jan 3 at 14:16



















  • May i have the debug config settings u try in Intellij Idea

    – Nipuna Priyamal
    Jan 3 at 8:42











  • @NipunaPriyamal I edited my post in order to add settings you requested

    – wojtek1902
    Jan 3 at 14:16

















May i have the debug config settings u try in Intellij Idea

– Nipuna Priyamal
Jan 3 at 8:42





May i have the debug config settings u try in Intellij Idea

– Nipuna Priyamal
Jan 3 at 8:42













@NipunaPriyamal I edited my post in order to add settings you requested

– wojtek1902
Jan 3 at 14:16





@NipunaPriyamal I edited my post in order to add settings you requested

– wojtek1902
Jan 3 at 14:16












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54018348%2fdebugging-in-intellij-of-aks-application-run-on-jboss-disconnects-with-no-reason%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54018348%2fdebugging-in-intellij-of-aks-application-run-on-jboss-disconnects-with-no-reason%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Angular Downloading a file using contenturl with Basic Authentication

Olmecas

Can't read property showImagePicker of undefined in react native iOS