Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to port / Guide for Embedded Tomcat #238

Open
badmusamuda opened this issue Jan 22, 2021 · 4 comments
Open

Unable to connect to port / Guide for Embedded Tomcat #238

badmusamuda opened this issue Jan 22, 2021 · 4 comments
Assignees

Comments

@badmusamuda
Copy link

badmusamuda commented Jan 22, 2021

Guide

1.How to integrate Moskito with Spring Boot(Embeed Tomcat)

Issue

Moskito not connecting to localhost/9401 or any provided port

Steps to reproduce
[a.] Follow this guide https://anotheria.net/blog/msk/the-complete-moskito-integration-guide-step-1/
and this (https://anotheria.net/blog/msk/monitoring-existing-application-using-moskito-javaagent/)

[b.]Annotate the class with the @monitor

[c.]Start Moskito (via moskito-inpsect/startup.sh or move the war file inside the moskito-inspect/webapps to your PC tomcat/webapp)

[d.]Connect the localhost/port via UI as specified inside catalina.sh of your web Apache Tomcat dir

Q. What catalina.sh I'm setting the(The one at the Moskito dir, or the installed Apache Tomcat on my PC)?

I look forward to hearing from you.

Thanks

@dvayanu
Copy link
Member

dvayanu commented Jan 28, 2021

@dvolkov17 please create a prototype which starts embedded tomcat with a moskito monitored class in it and connects through moskito-inspect.

@badmusamuda
Copy link
Author

Thanks

@badmusamuda
Copy link
Author

Issue #1 : Failed to read artifact descriptor for org.json:json:jar:1.0: Could not transfer artifact org.json:json:pom:1.0 from/to provided (http://nexus.anotheria.net/nexus/content/groups/public): Authorization failed for http:/
/nexus.anotheria.net/nexus/content/groups/public/org/json/json/1.0/json-1.0.pom 403 Forbidden

Steps to reproduce

Add as specified here (https://anotheria.net/blog/msk/the-complete-moskito-integration-guide-step-1/)

net.anotheria moskito-inspect-remote ${moskito.version}

Issue #2 : Configuration$MoskitoConfigurationHolder : Failed to configure! Relying on defaults! [No such configuration: moskito-aspect-config (FILE::moskito-aspect-config::JSON)]

Step to reproduce :

1.Annotate a Spring Boot project with @monitor
2.Run the jar file after a successful build

Isse #3 : n.a.moskito.core.util.BuiltInOSProducer : Couldn't find unix version of os class: com.sun.management.UnixOperatingSystemMXBean, osstats won't operate properly for all stats.
Current type is: sun.management.OperatingSystemImpl

Steps to reproduce

1.Annotate a Spring Boot project with @monitor
2.Run the jar file after a successful build

@badmusamuda
Copy link
Author

Thanks for the support.

Some vital and concise information is missing from the guide on how to use Moskito.

I would like to document a guide for using Moskito with Spring Boot in standalone or embedded.

Let me know if you're okay with that.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants