Nothing Special   »   [go: up one dir, main page]

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

No data is shown in javametric dashboard when newitcam application is deployed #82

Open
zjingjbj opened this issue Sep 6, 2018 · 7 comments

Comments

@zjingjbj
Copy link
zjingjbj commented Sep 6, 2018

We deployed a liberty application newitcam, as well as we configured javametrics. After start liberty, the application can be accessed, while there is no data in javametrics dashboard.

image

image

The scenario is based on a liberty with application newitcam.

Please help take a look. Thanks!

@tobespc
Copy link
Member
tobespc commented Sep 6, 2018

nothing is obvious as to why its not working, has this been working for you before ?

@zjingjbj
Copy link
Author
zjingjbj commented Sep 6, 2018

Once I tried to deploy a very simple war from https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/. After liberty restarted, the application can be accessed while javametric dashboard has data.

@zjingjbj
Copy link
Author
zjingjbj commented Sep 7, 2018

@tobespc If you prefer to reproduce it in your own environment, here is the configuration step.

  1. From 9.42.19.137 (root/zhu88jie), download /root/zjingjbj/simplejavatest/defaultServer.tar.gz. Copy the defaultServer.tar.gz under your liberty's directory /opt/ibm/wlp/usr/servers, and uncompress it. So there will be /opt/ibm/wlp/usr/servers/defaultServer.
  2. Restart your liberty server defaultServer

FYI. I've put javametrics under /opt/ibm/wlp/usr/servers/defaultServer/agent.

@zjingjbj
Copy link
Author

@tobespc Toby, I've monitor the application through wireshark and found that when such issue happens, agent doesn't return any data to dashboard through WebSocket. Do you have any idea?

@mattcolegate
Copy link
Member

HI @zjingjbj, I've just stumbled on this issue so sorry for resurrecting it :-) I've seen something like this happen when Liberty does not have the websocket feature installed, perhaps that was the issue?

@zjingjbj
Copy link
Author
zjingjbj commented Mar 2, 2020

@mattcolegate Actually websocket-1.1 is installed. If there is any log to check why there is no data shown in dashboard?

@mattcolegate
Copy link
Member

@zjingjbj There's the console log in the browser (for example, in Firefox right click the dashboard, select Inspect Element and then click the Console tab, look for any errors), the Liberty console.log should also show "Application javametrics-dash-1.X.0 started" and the Liberty messages.log should show messages like the following:

[28/02/20 10:51:26:338 GMT] 00000033 com.ibm.ws.webcontainer.osgi.webapp.WebGroup                 I SRVE0169I: Loading Web Module: javametrics.web.
[28/02/20 10:51:26:338 GMT] 00000033 com.ibm.ws.webcontainer                                      I SRVE0250I: Web Module javametrics.web has been bound to default_host.
[28/02/20 10:51:26:339 GMT] 00000033 com.ibm.ws.http.internal.VirtualHostImpl                     A CWWKT0016I: Web application available (default_host): http://host.docker.internal:9080/javametrics-dash/
[28/02/20 10:51:26:340 GMT] 00000033 com.ibm.ws.app.manager.AppMessageHelper                      A CWWKZ0001I: Application javametrics-dash-1.7.0 started in 1.678 seconds.
[28/02/20 10:51:26:386 GMT] 0000003a com.ibm.ws.session.WASSessionCore                            I SESN0176I: A new session context will be created for application key default_host/javametrics-dash
[28/02/20 10:51:26:386 GMT] 0000003a com.ibm.ws.util                                              I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[28/02/20 10:51:26:397 GMT] 0000003a com.ibm.ws.wsoc.EndpointManager                              I CWWKH0046I: Adding a WebSocket ServerEndpoint with the following URI: /javametrics-socket

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