How to configure Java agent with Apache tomcat

Thanks for the reply.

After getting an error with APM-server "listen TCP 127.0.0.1:8200: bind: address already in us"I am getting dashboard in APM and I am to view and see status but I am not able to see JVM memory usage and Threads status, please look into the matter.

APM-Server logs given below:--

2018-09-20T13:18:51.018+0530 INFO [request] beater/handlers.go:282 handled request {"request_id": "05b0fc4c-c76a-486b-a31d-b1bef828c065", "method": "POST", "URL": "/v1/transactions", "content_length": -1, "remote_address": "192.168.0.237", "user-agent": "co/elastic/apm/shaded/okhttp/3.9.1", "response_code": 202}
2018-09-20T13:18:51.024+0530 INFO [request] beater/handlers.go:282 handled request {"request_id": "3e2e88a3-6441-4766-ac16-7160179609f7", "method": "POST", "URL": "/v1/transactions", "content_length": -1, "remote_address": "192.168.0.237", "user-agent": "co/elastic/apm/shaded/okhttp/3.9.1", "response_code": 202}
2018-09-20T13:18:51.313+0530 INFO [request] beater/handlers.go:282 handled request {"request_id": "f88b816e-bb90-42fb-8fe1-bddf3d7c01dd", "method": "POST", "URL": "/v1/transactions", "content_length": -1, "remote_address": "192.168.0.237", "user-agent": "co/elastic/apm/shaded/okhttp/3.9.1", "response_code": 202}