APM Server accidentally stop after about 1 day running (Binary running tar.gz)

APM Java Agent 1.52
Elastic Stack 8.15.1

I am deploy APM Server 8.15.1 on centos 7 using tar.gz file
APM Server was working well, but after about 1 days, APM Server accidentally stop. Some one can help me!
APM server log:

{"log.level":"info","@timestamp":"2024-10-01T01:48:56.691+0700","log.logger":"beater","log.origin":{"function":"github.com/elastic/apm-server/internal/beater.server.run","file.name":"beater/server.go","file.line":235},"message":"Server stopped","service.name":"apm-server","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2024-10-01T01:48:56.691+0700","log.logger":"aggregator","log.origin":{"function":"github.com/elastic/apm-aggregation/aggregators.(*Aggregator).Close","file.name":"aggregators/aggregator.go","file.line":293},"message":"stopping aggregator","service.name":"apm-server","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2024-10-01T01:48:56.691+0700","log.logger":"beater","log.origin":{"function":"main.runServerWithProcessors.func1","file.name":"apm-server/main.go","file.line":210},"message":"LSM aggregator stopped","service.name":"apm-server","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2024-10-01T01:48:56.691+0700","log.logger":"aggregator","log.origin":{"function":"github.com/elastic/apm-aggregation/aggregators.(*Aggregator).Close","file.name":"aggregators/aggregator.go","file.line":305},"message":"running final aggregation","service.name":"apm-server","ecs.version":"1.6.0"}

Added server and removed java

Hello @TCT,

Can you share the full logs from the APM-Server? In the current logs, I cannot see anything before the server stopped message is logged which doesn't give me any information on why it could have stopped.

hello @lahsivjar , I have same questions. ,APM Server accidentally stop. My APM Java Agent is 1.52
Elastic Stack is 8.14.3. Help Me, My APM Server log like belong:

{"log.level":"info","@timestamp":"2024-11-13T14:37:01.769+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.49","http.request.id":"aa14e77c-697d-4d6f-9cb2-b92d300b0bf1","event.duration":10008923228,"http.request.body.bytes":945,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:06.959+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (search-server)","source.address":"10.2.98.50","http.request.id":"33e3439c-3f96-4228-9b73-5f3f85e58f2f","event.duration":10004799035,"http.request.body.bytes":981,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:08.008+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.49","http.request.id":"eb9ec327-f501-4e30-b512-aba03cf5b395","event.duration":261269,"http.request.body.bytes":495,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:08.398+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (batchimport-server)","source.address":"10.2.98.50","http.request.id":"75329fb0-76ca-4998-8faf-f3f5384d088d","event.duration":10002683978,"http.request.body.bytes":977,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:08.617+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.53","http.request.id":"26d2bae5-8243-47c1-974c-6f5cc95b0ccf","event.duration":320799,"http.request.body.bytes":491,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:11.125+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.49","http.request.id":"d5783743-0667-4524-a607-0eb8a69c0bd2","event.duration":10009765269,"http.request.body.bytes":974,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:11.488+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.50","http.request.id":"3df828e7-6b7a-4a1e-8692-1c22f3fcef55","event.duration":316316,"http.request.body.bytes":505,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:14.480+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (search-server)","source.address":"10.2.98.49","http.request.id":"4fa98238-fe55-49ba-8aea-60cf01d19e21","event.duration":145109,"http.request.body.bytes":494,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:15.118+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.52","http.request.id":"f8eb5638-8c5f-425d-a62b-8490b784c48a","event.duration":307848,"http.request.body.bytes":492,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:15.306+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (batchimport-server)","source.address":"10.2.98.51","http.request.id":"5ab0809f-b4f0-4264-a23b-7614bca00656","event.duration":266515,"http.request.body.bytes":452,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:16.452+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.50","http.request.id":"ed36da46-becd-48db-afac-20bd4fa7695f","event.duration":363932,"http.request.body.bytes":508,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:17.331+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.53","http.request.id":"de45aaa0-5899-4a38-b0c3-6b418aa9b1ff","event.duration":10011452377,"http.request.body.bytes":957,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:18.699+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.52","http.request.id":"34eacc96-0bd9-4a36-a5c6-a5ee6ba4b3d7","event.duration":10010591931,"http.request.body.bytes":944,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:19.897+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.50","http.request.id":"0ee7585b-533c-4ed2-af41-378253b18190","event.duration":10007521982,"http.request.body.bytes":989,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:22.434+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.49","http.request.id":"e5f36564-262e-481d-a0ec-8462e4c275ab","event.duration":275462,"http.request.body.bytes":451,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:23.443+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (search-server)","source.address":"10.2.98.49","http.request.id":"43459deb-266b-424b-9d82-5421e67b5050","event.duration":10002652786,"http.request.body.bytes":976,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:24.854+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (batchimport-server)","source.address":"10.2.98.51","http.request.id":"4c87cacd-f0ad-4d15-b91c-0d39e9c4152a","event.duration":10009863770,"http.request.body.bytes":917,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:25.529+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.50","http.request.id":"c505201d-ced7-47de-a33a-a16bb5806c40","event.duration":10005500646,"http.request.body.bytes":979,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:27.640+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (search-server)","source.address":"10.2.98.50","http.request.id":"54b2339b-d56a-44c8-9fa7-a0cc6ca5dbc1","event.duration":265704,"http.request.body.bytes":505,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:29.763+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (batchimport-server)","source.address":"10.2.98.50","http.request.id":"aa68eff5-1ff0-4c6c-ad41-3b8e28602089","event.duration":281306,"http.request.body.bytes":509,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:31.768+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.49","http.request.id":"e67a1e7f-002a-4e0a-8052-f09a120fcdef","event.duration":10004632934,"http.request.body.bytes":948,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:36.968+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (search-server)","source.address":"10.2.98.50","http.request.id":"cf7ab37c-7bdb-4481-bc01-e9560627eda5","event.duration":10011278720,"http.request.body.bytes":972,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:38.010+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.49","http.request.id":"7e052618-b99e-45fb-b9fc-bf03af9f2189","event.duration":263321,"http.request.body.bytes":495,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:38.409+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (batchimport-server)","source.address":"10.2.98.50","http.request.id":"d7907285-5127-43b5-8e1f-a6016acc5d49","event.duration":10009024776,"http.request.body.bytes":970,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:38.620+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.53","http.request.id":"31d8a33e-fa1f-49c2-ba9b-2138e9403920","event.duration":287770,"http.request.body.bytes":491,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:41.126+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.49","http.request.id":"629ad9b1-58ff-42a0-9074-806b51faa32c","event.duration":10007866095,"http.request.body.bytes":977,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:41.492+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.50","http.request.id":"e7b36ee1-d8aa-45f1-a1dd-e061dba4e7a2","event.duration":282722,"http.request.body.bytes":505,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:44.483+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (search-server)","source.address":"10.2.98.49","http.request.id":"e56ed87d-e6a8-4454-89bc-2d80dc847ac1","event.duration":275456,"http.request.body.bytes":494,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:45.121+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.52","http.request.id":"ed878517-1295-419e-8eb2-5750c2dc6060","event.duration":289575,"http.request.body.bytes":492,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:45.309+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (batchimport-server)","source.address":"10.2.98.51","http.request.id":"eee8a8b7-99a5-4e7a-b82d-0e7f0f59557b","event.duration":329215,"http.request.body.bytes":452,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:46.455+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"not modified","service.name":"apm-server","url.original":"/config/v1/agents","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.50","http.request.id":"115b1633-eadb-4486-89ad-91ffe153c02e","event.duration":395122,"http.request.body.bytes":508,"http.response.status_code":304,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:47.329+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.53","http.request.id":"f61f53fb-635b-470d-aaf4-a84bb06124cc","event.duration":10011264139,"http.request.body.bytes":963,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:48.690+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (yjlp-server)","source.address":"10.2.98.52","http.request.id":"dd7957b9-d6a8-4dd9-a516-1794235ad1e1","event.duration":10007009080,"http.request.body.bytes":959,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:49.900+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (adapter-server)","source.address":"10.2.98.50","http.request.id":"0e8c3da8-fa01-46d9-a9f3-e68c90895842","event.duration":10011123493,"http.request.body.bytes":985,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:51.808+0800","log.logger":"service","log.origin":{"function":"github.com/elastic/elastic-agent-libs/service.HandleSignals.func1","file.name":"service/service.go","file.line":52},"message":"Received signal \"hangup\", stopping","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:51.808+0800","log.logger":"beater","log.origin":{"function":"github.com/elastic/apm-server/internal/beater.(*httpServer).stop","file.name":"beater/http.go","file.line":110},"message":"Stop listening on: 0.0.0.0:8200","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:51.808+0800","log.logger":"beater","log.origin":{"function":"github.com/elastic/apm-server/internal/beater.(*Runner).Run.func1","file.name":"beater/beater.go","file.line":170},"message":"stopping apm-server... waiting maximum of 30s for queues to drain","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:53.444+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (search-server)","source.address":"10.2.98.49","http.request.id":"91491945-2547-420a-a3af-8371f29beaf5","event.duration":10003652159,"http.request.body.bytes":965,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:54.851+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (batchimport-server)","source.address":"10.2.98.51","http.request.id":"523858fd-4698-4f58-927f-73e53b295339","event.duration":10004162763,"http.request.body.bytes":913,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:37:55.536+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.50","http.request.id":"f86f278a-26fa-4249-ab33-cd46a10704de","event.duration":10010844062,"http.request.body.bytes":979,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:38:01.766+0800","log.logger":"request","log.origin":{"function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1","file.name":"middleware/log_middleware.go","file.line":62},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"apm-agent-java/1.52.0 (workbench-server)","source.address":"10.2.98.49","http.request.id":"35c6c78e-bfab-4ff4-a3d9-32f2916f4854","event.duration":10007865833,"http.request.body.bytes":947,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:38:01.810+0800","log.logger":"beater","log.origin":{"function":"github.com/elastic/apm-server/internal/beater.server.run","file.name":"beater/server.go","file.line":235},"message":"Server stopped","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:38:01.811+0800","log.logger":"aggregator","log.origin":{"function":"github.com/elastic/apm-aggregation/aggregators.(*Aggregator).Close","file.name":"aggregators/aggregator.go","file.line":274},"message":"stopping aggregator","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:38:01.811+0800","log.logger":"beater","log.origin":{"function":"main.runServerWithProcessors.func1","file.name":"apm-server/main.go","file.line":210},"message":"LSM aggregator stopped","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:38:01.811+0800","log.logger":"aggregator","log.origin":{"function":"github.com/elastic/apm-aggregation/aggregators.(*Aggregator).Close","file.name":"aggregators/aggregator.go","file.line":286},"message":"running final aggregation","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-11-13T14:38:01.868+0800","log.origin":{"function":"github.com/elastic/apm-server/internal/beatcmd.(*Beat).Run","file.name":"beatcmd/beat.go","file.line":396},"message":"apm-server stopped.","service.name":"apm-server","ecs.version":"1.6.0"}

The log line shows that the process received SIGHUP signal. It might be that you are running the service in foreground and closed/terminated the signal but in this case at least, the server received a SIGHUP signal from the OS.

thanks,The reason has been found. After starting it for a while, I closed the session, causing the service to stop. The issue has been resolved