Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.
Why quickstart-web can't send mail?
I guess it's an applicationContext-batch.xml problem because applicationContext-batch.xml in normal pinpoint-web is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:batch="http://www.springframework.org/schema/batch"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="batchJobLauncher" class="com.navercorp.pinpoint.web.batch.BatchJobLauncher"/>
<bean id="jobLauncher"
class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
<property name="jobRepository" ref="jobRepository" />
</bean>
<batch:job-repository id="jobRepository" data-source="metaDataDataSource" transaction-manager="metaDataTransactionManager"/>
<bean id="jobRegistry" class="org.springframework.batch.core.configuration.support.MapJobRegistry" />
<bean id="jobRegistryBeanPostProcessor" class="org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor">
<property name="jobRegistry" ref="jobRegistry"/>
</bean>
<bean id="jobFailListener" class="com.navercorp.pinpoint.web.batch.JobFailListener"/>
<bean id="alarmMessageSender" class="com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender"/>
<bean id="mailSender" class="com.navercorp.pinpoint.web.alarm.SpringSmtpMailSender">
<constructor-arg ref="batchConfiguration"/>
<constructor-arg ref="userGroupServiceImpl"/>
<constructor-arg ref="javaMailSenderImpl"/>
</bean>
<bean id="javaMailSenderImpl" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="#{batchProps['alarm.mail.server.url'] ?: ''}" />
<property name="port" value="#{batchProps['alarm.mail.server.port'] ?: 583}" />
<property name="username" value="#{batchProps['alarm.mail.server.username'] ?: ''}" />
<property name="password" value="#{batchProps['alarm.mail.server.password'] ?: ''}" />
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.from">#{batchProps['alarm.mail.sender.address'] ?: ''}</prop>
</props>
</property>
</bean>
</beans>
But within applicationContext-batch.xml in quickstart-web doesn't include that :
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:batch="http://www.springframework.org/schema/batch"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="batchJobLauncher" class="com.navercorp.pinpoint.web.batch.BatchJobLauncher"/>
<bean id="jobLauncher"
class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
<property name="jobRepository" ref="jobRepository" />
</bean>
<batch:job-repository id="jobRepository" data-source="metaDataDataSource" transaction-manager="metaDataTransactionManager"/>
<bean id="jobRegistry" class="org.springframework.batch.core.configuration.support.MapJobRegistry" />
<bean id="jobRegistryBeanPostProcessor" class="org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor">
<property name="jobRegistry" ref="jobRegistry"/>
</bean>
<bean id="jobFailListener" class="com.navercorp.pinpoint.web.batch.JobFailListener"/>
</beans>
When I was force to register the bean about email, It was removed as soon as the quickstart-web was launched...
also, I finished setting mysql and email configuration according to the alarm guide, I have confirmed that mysql's data is updated.
batch.properties
#batch enable config
batch.enable=true
#batch server ip to execute batch
batch.server.ip=127.0.0.1
batch.server.env=release
pinpoint.url=http://10_.x.x.x_:28080
alarm.mail.server.url=smtp.gmail.com
alarm.mail.server.port=587
[email protected]
alarm.mail.server.password=_xxxxxxxxx_
[email protected]
#flink server list
batch.flink.server=
jdbc.properties
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/pinpoint?characterEncoding=UTF-8
jdbc.username=pinpoint
jdbc.password=_xxxxxx_
log
-----------------------------------------
ms % Task name
-----------------------------------------
00434 081% ApplicationMap Hbase Io Fetch(Caller,Callee) Time
00103 019% ApplicationMap MapBuilding(Response) Time
2019-03-05 11:29:41 [DEBUG](c.n.p.w.c.ScatterChartController :164) fetch scatter data. RANGE=Range{from=1551752680000, to=1551752980000, range=300000}, X-Group-Unit:987, Y-Group-Unit:57, LIMIT=5000, BACKWARD_DIRECTION:true, FILTER:
2019-03-05 11:29:41 [DEBUG](w.d.h.HbaseApplicationTraceIndexDao:303) scanTraceScatterDataMadeOfDotGroup
2019-03-05 11:29:41 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 73ms
2019-03-05 11:29:41 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 48ms
2019-03-05 11:29:41 [INFO ](c.n.p.w.c.ScatterChartController :181) Fetch scatterData time : 128ms
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :166) ConnectionEstablished. session:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws]
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :199) handleTextMessage. session:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws], remote:/10.51.6.20:4463, message:{"type":"REQUEST","command":"activeThreadCount","parameters":{"applicationName":"TESTAPP"}}.
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :293) unbindingResponseAggregator. session:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws], applicationName:null.
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :272) bindingResponseAggregator. session:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws], applicationName:TESTAPP.
2019-03-05 11:29:42 [INFO ](ActiveThreadCountResponseAggregator:118) addWebSocketSession. applicationName:TESTAPP, webSocketSession:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws]
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountWorker :113) ActiveThreadCountWorker start. applicationName:TESTAPP, agentId:test-agent
2019-03-05 11:29:42 [INFO ](c.n.p.r.s.DefaultPinpointServer :249) DefaultPinpointServer@580af205 createStream() started.
2019-03-05 11:29:42 [INFO ](c.n.p.r.s.StreamChannelManager :77 ) Open streamChannel initialization started. Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997]
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountWorker :249) eventPerformed streamChannel:ClientStreamChannel[Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, State:OPEN]., stateCode:OPEN
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountWorker :249) eventPerformed streamChannel:ClientStreamChannel[Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, State:CONNECT_AWAIT]., stateCode:CONNECT_AWAIT
2019-03-05 11:29:42 [DEBUG](c.n.p.r.s.StreamChannelManager :117) StreamChannel message received. (Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, Packet:BasicStreamPacket{streamChannelId=2}).
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.ActiveThreadCountWorker :249) eventPerformed streamChannel:ClientStreamChannel[Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, State:CONNECTED]., stateCode:CONNECTED
2019-03-05 11:29:42 [INFO ](c.n.p.r.s.StreamChannelManager :104) Open streamChannel initialization completed. Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamChannelContext:ClientStreamChannel[Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, State:CONNECTED].
2019-03-05 11:29:42 [INFO ](c.n.p.r.s.DefaultPinpointServer :253) DefaultPinpointServer@580af205 createStream() completed.
2019-03-05 11:29:42 [INFO ](c.n.p.w.w.WorkerActiveManager :114) startAgentCheckJob. applicationName:TESTAPP
2019-03-05 11:29:43 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :182) ConnectionClose. session:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws], caused:CloseStatus[code=1000, reason=null]
2019-03-05 11:29:43 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :293) unbindingResponseAggregator. session:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws], applicationName:TESTAPP.
2019-03-05 11:29:43 [INFO ](ActiveThreadCountResponseAggregator:149) removeWebSocketSessionAndGetIsCleared. applicationNameTESTAPP, webSocketSession:StandardWebSocketSession[id=0, uri=/agent/activeThread.pinpointws]
2019-03-05 11:29:43 [INFO ](c.n.p.w.w.ActiveThreadCountWorker :142) ActiveThreadCountWorker stop. applicationName:TESTAPP, agentId:test-agent, streamChannel:ClientStreamChannel[Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, State:CONNECTED].
2019-03-05 11:29:43 [INFO ](c.n.p.w.w.ActiveThreadCountWorker :249) eventPerformed streamChannel:ClientStreamChannel[Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, State:CLOSED]., stateCode:CLOSED
2019-03-05 11:29:43 [DEBUG](c.n.p.r.s.StreamChannelManager :117) StreamChannel message received. (Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, Packet:StreamClosePacket{streamChannelId=2, code=STATE_CLOSED}).
2019-03-05 11:29:43 [DEBUG](c.n.p.r.s.StreamChannelManager :117) StreamChannel message received. (Channel:[id: 0xd2b0fa23, /127.0.0.1:54150 => /127.0.1.1:9997], StreamId:2, Packet:StreamClosePacket{streamChannelId=2, code=STATE_CLOSED}).
2019-03-05 11:29:43 [INFO ](c.n.p.w.c.MapController :216) getServerMap() application:TESTAPP(TOMCAT:1010) range:Range{from=1551751783000, to=1551752983000, range=1200000} searchOption:SearchOption{callerSearchDepth=1, calleeSearchDepth=1, linkSelectorType=UNIDIRECTIONAL, wasOnly=false}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.MapServiceImpl :91 ) SelectApplicationMap
2019-03-05 11:29:43 [DEBUG](.p.w.s.m.UnidirectionalLinkSelector:63 ) Creating link data map for [TESTAPP(TOMCAT:1010)]
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:77 ) outbound depth search start. callerDepth:0, calleeDepth:0, size:1, nodes:[TESTAPP(TOMCAT:1010)]
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:59 ) Finding Caller/Callee link data for TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:65 ) Finding Caller link data for TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](p.w.d.h.HbaseMapStatisticsCallerDao:111) scan Time:Range{from=1551751739999, to=1551752940000, range s=1200}
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 37ms
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCallerMapper:77 ) mapRow:0
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCallerMapper:103) Fetched Caller.(New) TESTAPP(TOMCAT:1010) test-agent -> 127.0.1.1:28081(HTTP_CLIENT_4:9052) (slot:1000/4) calleeHost:
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCallerMapper:77 ) mapRow:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCallerMapper:103) Fetched Caller.(New) TESTAPP(TOMCAT:1010) test-agent -> 127.0.1.1:28081(HTTP_CLIENT_4:9052) (slot:1000/4) calleeHost:
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 44ms
2019-03-05 11:29:43 [DEBUG](p.w.d.h.HbaseMapStatisticsCallerDao:98 ) Caller data. LinkDataMap [{LinkKey{fromApplication='TESTAPP', fromServiceType=TOMCAT, toApplication='127.0.1.1:28081', toServiceType=HTTP_CLIENT_4, hash=-2028454088}=LinkData{fromApplication=TESTAPP(TOMCAT:1010), toApplication=127.0.1.1:28081(HTTP_CLIENT_4:9052), LinkCallDataMap{{LinkKey{fromApplication='test-agent', fromServiceType=TOMCAT, toApplication='127.0.1.1:28081', toServiceType=HTTP_CLIENT_4, hash=60417917}=LinkCallData{source='test-agent', sourceServiceType=TOMCAT, target='127.0.1.1:28081', targetServiceType=HTTP_CLIENT_4}}}}}], Range{from=1551751783000, to=1551752983000, range=1200000}
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:67 ) Found Caller. count=1, caller=TESTAPP(TOMCAT:1010), depth=0
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.p.RpcCallProcessor :82 ) Finding accept applications for 127.0.1.1:28081(HTTP_CLIENT_4:9052), Range{from=1551751783000, to=1551752983000, range=1200000}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.p.RpcCallProcessor :113) findAcceptApplication TESTAPP(TOMCAT:1010) 127.0.1.1:28081
2019-03-05 11:29:43 [DEBUG](w.s.m.p.AcceptApplicationLocalCache:46 ) acceptApplicationLocalCache miss RpcApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.p.RpcCallProcessor :133) acceptApplicationCache hit TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](.p.w.d.h.HbaseHostApplicationMapDao:109) scan parentApplication:TESTAPP(TOMCAT:1010), range:Range{from=1551751783000, to=1551752983000, range=1200000}
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 4ms
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 6ms
2019-03-05 11:29:43 [DEBUG](.p.w.d.h.HbaseHostApplicationMapDao:93 ) findAcceptApplicationName result:[AcceptApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}]
2019-03-05 11:29:43 [DEBUG](w.s.m.p.AcceptApplicationLocalCache:57 ) findAcceptApplication:[AcceptApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}]
2019-03-05 11:29:43 [DEBUG](w.s.m.p.AcceptApplicationLocalCache:43 ) acceptApplicationLocalCache hit RpcApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}:[AcceptApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.p.RpcCallProcessor :125) findAcceptApplication TESTAPP(TOMCAT:1010)->127.0.1.1:28081 result:[AcceptApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.p.RpcCallProcessor :84 ) Found accept applications: [AcceptApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.p.RpcCallProcessor :87 ) Application info replaced. LinkData{fromApplication=TESTAPP(TOMCAT:1010), toApplication=127.0.1.1:28081(HTTP_CLIENT_4:9052), LinkCallDataMap{{LinkKey{fromApplication='test-agent', fromServiceType=TOMCAT, toApplication='127.0.1.1:28081', toServiceType=HTTP_CLIENT_4, hash=60417917}=LinkCallData{source='test-agent', sourceServiceType=TOMCAT, target='127.0.1.1:28081', targetServiceType=HTTP_CLIENT_4}}}} => [AcceptApplication{host='127.0.1.1:28081', application=TESTAPP(TOMCAT:1010)}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :89 ) callee depth overflow application:TESTAPP(TOMCAT:1010) depth:0
2019-03-05 11:29:43 [DEBUG](w.s.m.DefaultApplicationsMapCreator:68 ) depth search. callerDepth : 0, calleeDepth : 0
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:79 ) outbound depth search end. callerDepth:0, calleeDepth:0
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:81 ) inbound depth search start. callerDepth:0, calleeDepth:0, size:1, nodes:[TESTAPP(TOMCAT:1010)]
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:59 ) Finding Caller/Callee link data for TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :77 ) caller depth overflow application:TESTAPP(TOMCAT:1010) depth:0
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:83 ) Finding Callee link data for TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](p.w.d.h.HbaseMapStatisticsCalleeDao:110) scan time:Range{from=1551751739999, to=1551752940000, range s=1200}
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 35ms
2019-03-05 11:29:43 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :330) ActiveThreadTimerTask started.
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:79 ) mapRow:0
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:109) Fetched Callee. TESTAPP_TOMCAT(USER:2) callerHost:test-agent -> TESTAPP(TOMCAT:1010) (slot:-1000/4),
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:116) Fetched Callee. statistics:LinkDataMap [{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-1492529839}=LinkData{fromApplication=TESTAPP_TOMCAT(USER:2), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='test-agent', toServiceType=TOMCAT, hash=972210902}=LinkCallData{source='TESTAPP_TOMCAT', sourceServiceType=USER, target='test-agent', targetServiceType=TOMCAT}}}}}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:109) Fetched Callee. TESTAPP(TOMCAT:1010) callerHost:test-agent -> TESTAPP(TOMCAT:1010) (slot:1000/4),
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:116) Fetched Callee. statistics:LinkDataMap [{LinkKey{fromApplication='TESTAPP', fromServiceType=TOMCAT, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-2047936890}=LinkData{fromApplication=TESTAPP(TOMCAT:1010), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP', fromServiceType=TOMCAT, toApplication='test-agent', toServiceType=TOMCAT, hash=416803851}=LinkCallData{source='TESTAPP', sourceServiceType=TOMCAT, target='test-agent', targetServiceType=TOMCAT}}}}, LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-1492529839}=LinkData{fromApplication=TESTAPP_TOMCAT(USER:2), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='test-agent', toServiceType=TOMCAT, hash=972210902}=LinkCallData{source='TESTAPP_TOMCAT', sourceServiceType=USER, target='test-agent', targetServiceType=TOMCAT}}}}}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:79 ) mapRow:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:109) Fetched Callee. TESTAPP_TOMCAT(USER:2) callerHost:test-agent -> TESTAPP(TOMCAT:1010) (slot:-1000/4),
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:116) Fetched Callee. statistics:LinkDataMap [{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-1492529839}=LinkData{fromApplication=TESTAPP_TOMCAT(USER:2), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='test-agent', toServiceType=TOMCAT, hash=972210902}=LinkCallData{source='TESTAPP_TOMCAT', sourceServiceType=USER, target='test-agent', targetServiceType=TOMCAT}}}}}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:109) Fetched Callee. TESTAPP(TOMCAT:1010) callerHost:test-agent -> TESTAPP(TOMCAT:1010) (slot:1000/4),
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:116) Fetched Callee. statistics:LinkDataMap [{LinkKey{fromApplication='TESTAPP', fromServiceType=TOMCAT, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-2047936890}=LinkData{fromApplication=TESTAPP(TOMCAT:1010), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP', fromServiceType=TOMCAT, toApplication='test-agent', toServiceType=TOMCAT, hash=416803851}=LinkCallData{source='TESTAPP', sourceServiceType=TOMCAT, target='test-agent', targetServiceType=TOMCAT}}}}, LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-1492529839}=LinkData{fromApplication=TESTAPP_TOMCAT(USER:2), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='test-agent', toServiceType=TOMCAT, hash=972210902}=LinkCallData{source='TESTAPP_TOMCAT', sourceServiceType=USER, target='test-agent', targetServiceType=TOMCAT}}}}}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:79 ) mapRow:2
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:109) Fetched Callee. TESTAPP_TOMCAT(USER:2) callerHost:test-agent -> TESTAPP(TOMCAT:1010) (slot:1000/2),
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.MapStatisticsCalleeMapper:116) Fetched Callee. statistics:LinkDataMap [{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-1492529839}=LinkData{fromApplication=TESTAPP_TOMCAT(USER:2), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='test-agent', toServiceType=TOMCAT, hash=972210902}=LinkCallData{source='TESTAPP_TOMCAT', sourceServiceType=USER, target='test-agent', targetServiceType=TOMCAT}}}}}]
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 41ms
2019-03-05 11:29:43 [DEBUG](p.w.d.h.HbaseMapStatisticsCalleeDao:97 ) Callee data. LinkDataMap [{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-1492529839}=LinkData{fromApplication=TESTAPP_TOMCAT(USER:2), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP_TOMCAT', fromServiceType=USER, toApplication='test-agent', toServiceType=TOMCAT, hash=972210902}=LinkCallData{source='TESTAPP_TOMCAT', sourceServiceType=USER, target='test-agent', targetServiceType=TOMCAT}}}}, LinkKey{fromApplication='TESTAPP', fromServiceType=TOMCAT, toApplication='TESTAPP', toServiceType=TOMCAT, hash=-2047936890}=LinkData{fromApplication=TESTAPP(TOMCAT:1010), toApplication=TESTAPP(TOMCAT:1010), LinkCallDataMap{{LinkKey{fromApplication='TESTAPP', fromServiceType=TOMCAT, toApplication='test-agent', toServiceType=TOMCAT, hash=416803851}=LinkCallData{source='TESTAPP', sourceServiceType=TOMCAT, target='test-agent', targetServiceType=TOMCAT}}}}}], Range{from=1551751783000, to=1551752983000, range=1200000}
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:85 ) Found Callee. count=2, callee=TESTAPP(TOMCAT:1010), depth=0
2019-03-05 11:29:43 [DEBUG](w.s.m.DefaultApplicationsMapCreator:68 ) depth search. callerDepth : 0, calleeDepth : 0
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:83 ) inbound depth search end. callerDepth:0, calleeDepth:0
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:77 ) outbound depth search start. callerDepth:1, calleeDepth:1, size:1, nodes:[TESTAPP(TOMCAT:1010)]
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:59 ) Finding Caller/Callee link data for TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :77 ) caller depth overflow application:TESTAPP(TOMCAT:1010) depth:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :89 ) callee depth overflow application:TESTAPP(TOMCAT:1010) depth:1
2019-03-05 11:29:43 [DEBUG](w.s.m.DefaultApplicationsMapCreator:68 ) depth search. callerDepth : 1, calleeDepth : 1
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:79 ) outbound depth search end. callerDepth:1, calleeDepth:1
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:81 ) inbound depth search start. callerDepth:1, calleeDepth:1, size:2, nodes:[TESTAPP(TOMCAT:1010), TESTAPP_TOMCAT(USER:2)]
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:59 ) Finding Caller/Callee link data for TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](.w.s.m.DefaultApplicationMapCreator:59 ) Finding Caller/Callee link data for TESTAPP_TOMCAT(USER:2)
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :77 ) caller depth overflow application:TESTAPP(TOMCAT:1010) depth:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :77 ) caller depth overflow application:TESTAPP_TOMCAT(USER:2) depth:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :89 ) callee depth overflow application:TESTAPP(TOMCAT:1010) depth:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.s.m.LinkSelectContext :89 ) callee depth overflow application:TESTAPP_TOMCAT(USER:2) depth:1
2019-03-05 11:29:43 [DEBUG](w.s.m.DefaultApplicationsMapCreator:80 ) depth search. callerDepth : 1, calleeDepth : 1
2019-03-05 11:29:43 [INFO ](.p.w.s.m.UnidirectionalLinkSelector:83 ) inbound depth search end. callerDepth:1, calleeDepth:1
2019-03-05 11:29:43 [INFO ](c.n.p.w.a.ApplicationMapBuilder :129) Building application map
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.n.NodeListFactory :52 ) createSourceNode:TESTAPP(TOMCAT:1010)
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.n.NodeListFactory :36 ) node size:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.n.NodeListFactory :52 ) createSourceNode:TESTAPP_TOMCAT(USER:2)
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.n.NodeListFactory :38 ) node size:2
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.n.NodeListFactory :40 ) allNode:[Node [TESTAPP(TOMCAT:1010)], Node [TESTAPP_TOMCAT(USER:2)]]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.l.LinkListFactory :77 ) createSourceLink:DefaultLink{from=Node [TESTAPP(TOMCAT:1010)] -> to=Node [TESTAPP(TOMCAT:1010)]}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.l.LinkListFactory :41 ) link size:1
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.l.LinkListFactory :109) createTargetLink:DefaultLink{from=Node [TESTAPP_TOMCAT(USER:2)] -> to=Node [TESTAPP(TOMCAT:1010)]}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.l.LinkListFactory :43 ) link size:2
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.l.LinkListFactory :125) appendLinkHistogram link:DefaultLink{from=Node [TESTAPP(TOMCAT:1010)] -> to=Node [TESTAPP(TOMCAT:1010)]}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.l.LinkListFactory :125) appendLinkHistogram link:DefaultLink{from=Node [TESTAPP_TOMCAT(USER:2)] -> to=Node [TESTAPP(TOMCAT:1010)]}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.d.h.HbaseMapResponseTimeDao:79 ) selectResponseTime applicationName:TESTAPP(TOMCAT:1010), Range{from=1551751783000, to=1551752983000, range=1200000}
2019-03-05 11:29:43 [DEBUG](c.n.p.w.d.h.HbaseMapResponseTimeDao:100) scan time:Range{from=1551751739999, to=1551752940000, range s=1200}
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 6ms
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:43 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 7ms
2019-03-05 11:29:43 [DEBUG](c.n.p.w.d.h.HbaseMapResponseTimeDao:87 ) Self data [ResponseTime{applicationName='TESTAPP', applicationServiceType=TOMCAT, timeStamp=1551752940000, responseHistogramMap={test-agent=TimeHistogram{timeStamp=1551752940000, Histogram{schema={typeCode=2, fastSlot=HistogramSlot{slotTime=1000, slotType=FAST, slotName='1s'}, normalSlot=HistogramSlot{slotTime=3000, slotType=NORMAL, slotName='3s'}, slowSlot=HistogramSlot{slotTime=5000, slotType=SLOW, slotName='5s'}, verySlowSlot=HistogramSlot{slotTime=0, slotType=VERY_SLOW, slotName='Slow'}, errorSlot=HistogramSlot{slotTime=-1, slotType=ERROR, slotName='Error'}, fastErrorSlot=HistogramSlot{slotTime=-1000, slotType=FAST_ERROR, slotName='1s'}, normalErrorSlot=HistogramSlot{slotTime=-3000, slotType=NORMAL_ERROR, slotName='3s'}, slowErrorSlot=HistogramSlot{slotTime=-5000, slotType=SLOW_ERROR, slotName='5s'}, verySlowErrorSlot=HistogramSlot{slotTime=-9999, slotType=VERY_SLOW_ERROR, slotName='Slow'}}, fastCount=4, normalCount=0, slowCount=0, verySlowCount=0, errorCount=0, fastErrorCount=4, normalErrorCount=0, slowErrorCount=0, verySlowErrorCount=0}}}}, ResponseTime{applicationName='TESTAPP', applicationServiceType=TOMCAT, timeStamp=1551752760000, responseHistogramMap={test-agent=TimeHistogram{timeStamp=1551752760000, Histogram{schema={typeCode=2, fastSlot=HistogramSlot{slotTime=1000, slotType=FAST, slotName='1s'}, normalSlot=HistogramSlot{slotTime=3000, slotType=NORMAL, slotName='3s'}, slowSlot=HistogramSlot{slotTime=5000, slotType=SLOW, slotName='5s'}, verySlowSlot=HistogramSlot{slotTime=0, slotType=VERY_SLOW, slotName='Slow'}, errorSlot=HistogramSlot{slotTime=-1, slotType=ERROR, slotName='Error'}, fastErrorSlot=HistogramSlot{slotTime=-1000, slotType=FAST_ERROR, slotName='1s'}, normalErrorSlot=HistogramSlot{slotTime=-3000, slotType=NORMAL_ERROR, slotName='3s'}, slowErrorSlot=HistogramSlot{slotTime=-5000, slotType=SLOW_ERROR, slotName='5s'}, verySlowErrorSlot=HistogramSlot{slotTime=-9999, slotType=VERY_SLOW_ERROR, slotName='Slow'}}, fastCount=4, normalCount=0, slowCount=0, verySlowCount=0, errorCount=0, fastErrorCount=4, normalErrorCount=0, slowErrorCount=0, verySlowErrorCount=0}}}}, ResponseTime{applicationName='TESTAPP', applicationServiceType=TOMCAT, timeStamp=1551752700000, responseHistogramMap={test-agent=TimeHistogram{timeStamp=1551752700000, Histogram{schema={typeCode=2, fastSlot=HistogramSlot{slotTime=1000, slotType=FAST, slotName='1s'}, normalSlot=HistogramSlot{slotTime=3000, slotType=NORMAL, slotName='3s'}, slowSlot=HistogramSlot{slotTime=5000, slotType=SLOW, slotName='5s'}, verySlowSlot=HistogramSlot{slotTime=0, slotType=VERY_SLOW, slotName='Slow'}, errorSlot=HistogramSlot{slotTime=-1, slotType=ERROR, slotName='Error'}, fastErrorSlot=HistogramSlot{slotTime=-1000, slotType=FAST_ERROR, slotName='1s'}, normalErrorSlot=HistogramSlot{slotTime=-3000, slotType=NORMAL_ERROR, slotName='3s'}, slowErrorSlot=HistogramSlot{slotTime=-5000, slotType=SLOW_ERROR, slotName='5s'}, verySlowErrorSlot=HistogramSlot{slotTime=-9999, slotType=VERY_SLOW_ERROR, slotName='Slow'}}, fastCount=2, normalCount=0, slowCount=0, verySlowCount=0, errorCount=0, fastErrorCount=0, normalErrorCount=0, slowErrorCount=0, verySlowErrorCount=0}}}}]
2019-03-05 11:29:43 [DEBUG](entInfoServerInstanceListDataSource:71 ) unfiltered agentInfos [AgentInfo{applicationName='TESTAPP', agentId='test-agent', startTimestamp=1551750966003, hostName='digicap-ProLiant-DL380p-Gen8', ip='fe80:0:0:0:eff:8153:7d47:a4c8%eno1', ports='', serviceTypeCode=1010, pid=45825, vmVersion='1.8.0_192', agentVersion='1.8.1', jvmInfo=JvmInfoBo{version=0, jvmVersion='1.8.0_192', gcTypeName='PARALLEL'}, initialStartTimestamp=0, container=false, status=null}]
2019-03-05 11:29:43 [DEBUG](entInfoServerInstanceListDataSource:73 ) add agentInfos TESTAPP(TOMCAT:1010) : [AgentInfo{applicationName='TESTAPP', agentId='test-agent', startTimestamp=1551750966003, hostName='digicap-ProLiant-DL380p-Gen8', ip='fe80:0:0:0:eff:8153:7d47:a4c8%eno1', ports='', serviceTypeCode=1010, pid=45825, vmVersion='1.8.0_192', agentVersion='1.8.1', jvmInfo=JvmInfoBo{version=0, jvmVersion='1.8.0_192', gcTypeName='PARALLEL'}, initialStartTimestamp=0, container=false, status=null}]
2019-03-05 11:29:43 [DEBUG](c.n.p.w.a.n.ServerBuilder :109) buildPhysicalServer:[AgentInfo{applicationName='TESTAPP', agentId='test-agent', startTimestamp=1551750966003, hostName='digicap-ProLiant-DL380p-Gen8', ip='fe80:0:0:0:eff:8153:7d47:a4c8%eno1', ports='', serviceTypeCode=1010, pid=45825, vmVersion='1.8.0_192', agentVersion='1.8.1', jvmInfo=JvmInfoBo{version=0, jvmVersion='1.8.0_192', gcTypeName='PARALLEL'}, initialStartTimestamp=0, container=false, status=null}]
2019-03-05 11:29:43 [INFO ](c.n.p.w.s.MapServiceImpl :118) ApplicationMap BuildTime: StopWatch 'ApplicationMap': running time (millis) = 207
-----------------------------------------
ms % Task name
-----------------------------------------
00181 087% ApplicationMap Hbase Io Fetch(Caller,Callee) Time
00026 013% ApplicationMap MapBuilding(Response) Time
2019-03-05 11:29:44 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :166) ConnectionEstablished. session:StandardWebSocketSession[id=1, uri=/agent/activeThread.pinpointws]
2019-03-05 11:29:44 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :199) handleTextMessage. session:StandardWebSocketSession[id=1, uri=/agent/activeThread.pinpointws], remote:/10.51.6.20:4464, message:{"type":"REQUEST","command":"activeThreadCount","parameters":{"applicationName":""}}.
2019-03-05 11:29:44 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :293) unbindingResponseAggregator. session:StandardWebSocketSession[id=1, uri=/agent/activeThread.pinpointws], applicationName:null.
2019-03-05 11:29:44 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :272) bindingResponseAggregator. session:StandardWebSocketSession[id=1, uri=/agent/activeThread.pinpointws], applicationName:.
2019-03-05 11:29:44 [DEBUG](c.n.p.w.c.ScatterChartController :164) fetch scatter data. RANGE=Range{from=1551751783000, to=1551752983000, range=1200000}, X-Group-Unit:3947, Y-Group-Unit:57, LIMIT=5000, BACKWARD_DIRECTION:true, FILTER:
2019-03-05 11:29:44 [DEBUG](w.d.h.HbaseApplicationTraceIndexDao:303) scanTraceScatterDataMadeOfDotGroup
2019-03-05 11:29:44 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 39ms
2019-03-05 11:29:44 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 38ms
2019-03-05 11:29:44 [INFO ](c.n.p.w.c.ScatterChartController :181) Fetch scatterData time : 80ms
2019-03-05 11:29:44 [DEBUG](c.n.p.w.c.ScatterChartController :164) fetch scatter data. RANGE=Range{from=1551752980000, to=1551752982000, range=2000}, X-Group-Unit:987, Y-Group-Unit:57, LIMIT=5000, BACKWARD_DIRECTION:false, FILTER:
2019-03-05 11:29:44 [DEBUG](w.d.h.HbaseApplicationTraceIndexDao:303) scanTraceScatterDataMadeOfDotGroup
2019-03-05 11:29:44 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 127ms
2019-03-05 11:29:44 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 27ms
2019-03-05 11:29:44 [INFO ](c.n.p.w.c.ScatterChartController :181) Fetch scatterData time : 155ms
2019-03-05 11:29:44 [DEBUG](c.n.p.w.d.h.HbaseMapResponseTimeDao:79 ) selectResponseTime applicationName:TESTAPP(TOMCAT:1010), Range{from=1551752680000, to=1551752980000, range=300000}
2019-03-05 11:29:44 [DEBUG](c.n.p.w.d.h.HbaseMapResponseTimeDao:100) scan time:Range{from=1551752639999, to=1551752940000, range s=300}
2019-03-05 11:29:44 [DEBUG](c.n.p.c.h.HbaseTemplate2 :567) DistributedScanner createTime: 5ms
2019-03-05 11:29:44 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:44 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:44 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:44 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:44 [DEBUG](c.n.p.w.m.ResponseTimeMapper :72 ) unknown column family:[67]
2019-03-05 11:29:44 [DEBUG](c.n.p.c.h.HbaseTemplate2 :575) DistributedScanner scanTime: 8ms
2019-03-05 11:29:44 [DEBUG](c.n.p.w.d.h.HbaseMapResponseTimeDao:87 ) Self data [ResponseTime{applicationName='TESTAPP', applicationServiceType=TOMCAT, timeStamp=1551752940000, responseHistogramMap={test-agent=TimeHistogram{timeStamp=1551752940000, Histogram{schema={typeCode=2, fastSlot=HistogramSlot{slotTime=1000, slotType=FAST, slotName='1s'}, normalSlot=HistogramSlot{slotTime=3000, slotType=NORMAL, slotName='3s'}, slowSlot=HistogramSlot{slotTime=5000, slotType=SLOW, slotName='5s'}, verySlowSlot=HistogramSlot{slotTime=0, slotType=VERY_SLOW, slotName='Slow'}, errorSlot=HistogramSlot{slotTime=-1, slotType=ERROR, slotName='Error'}, fastErrorSlot=HistogramSlot{slotTime=-1000, slotType=FAST_ERROR, slotName='1s'}, normalErrorSlot=HistogramSlot{slotTime=-3000, slotType=NORMAL_ERROR, slotName='3s'}, slowErrorSlot=HistogramSlot{slotTime=-5000, slotType=SLOW_ERROR, slotName='5s'}, verySlowErrorSlot=HistogramSlot{slotTime=-9999, slotType=VERY_SLOW_ERROR, slotName='Slow'}}, fastCount=4, normalCount=0, slowCount=0, verySlowCount=0, errorCount=0, fastErrorCount=4, normalErrorCount=0, slowErrorCount=0, verySlowErrorCount=0}}}}, ResponseTime{applicationName='TESTAPP', applicationServiceType=TOMCAT, timeStamp=1551752760000, responseHistogramMap={test-agent=TimeHistogram{timeStamp=1551752760000, Histogram{schema={typeCode=2, fastSlot=HistogramSlot{slotTime=1000, slotType=FAST, slotName='1s'}, normalSlot=HistogramSlot{slotTime=3000, slotType=NORMAL, slotName='3s'}, slowSlot=HistogramSlot{slotTime=5000, slotType=SLOW, slotName='5s'}, verySlowSlot=HistogramSlot{slotTime=0, slotType=VERY_SLOW, slotName='Slow'}, errorSlot=HistogramSlot{slotTime=-1, slotType=ERROR, slotName='Error'}, fastErrorSlot=HistogramSlot{slotTime=-1000, slotType=FAST_ERROR, slotName='1s'}, normalErrorSlot=HistogramSlot{slotTime=-3000, slotType=NORMAL_ERROR, slotName='3s'}, slowErrorSlot=HistogramSlot{slotTime=-5000, slotType=SLOW_ERROR, slotName='5s'}, verySlowErrorSlot=HistogramSlot{slotTime=-9999, slotType=VERY_SLOW_ERROR, slotName='Slow'}}, fastCount=4, normalCount=0, slowCount=0, verySlowCount=0, errorCount=0, fastErrorCount=4, normalErrorCount=0, slowErrorCount=0, verySlowErrorCount=0}}}}, ResponseTime{applicationName='TESTAPP', applicationServiceType=TOMCAT, timeStamp=1551752700000, responseHistogramMap={test-agent=TimeHistogram{timeStamp=1551752700000, Histogram{schema={typeCode=2, fastSlot=HistogramSlot{slotTime=1000, slotType=FAST, slotName='1s'}, normalSlot=HistogramSlot{slotTime=3000, slotType=NORMAL, slotName='3s'}, slowSlot=HistogramSlot{slotTime=5000, slotType=SLOW, slotName='5s'}, verySlowSlot=HistogramSlot{slotTime=0, slotType=VERY_SLOW, slotName='Slow'}, errorSlot=HistogramSlot{slotTime=-1, slotType=ERROR, slotName='Error'}, fastErrorSlot=HistogramSlot{slotTime=-1000, slotType=FAST_ERROR, slotName='1s'}, normalErrorSlot=HistogramSlot{slotTime=-3000, slotType=NORMAL_ERROR, slotName='3s'}, slowErrorSlot=HistogramSlot{slotTime=-5000, slotType=SLOW_ERROR, slotName='5s'}, verySlowErrorSlot=HistogramSlot{slotTime=-9999, slotType=VERY_SLOW_ERROR, slotName='Slow'}}, fastCount=2, normalCount=0, slowCount=0, verySlowCount=0, errorCount=0, fastErrorCount=0, normalErrorCount=0, slowErrorCount=0, verySlowErrorCount=0}}}}]
2019-03-05 11:29:44 [DEBUG](entInfoServerInstanceListDataSource:71 ) unfiltered agentInfos [AgentInfo{applicationName='TESTAPP', agentId='test-agent', startTimestamp=1551750966003, hostName='digicap-ProLiant-DL380p-Gen8', ip='fe80:0:0:0:eff:8153:7d47:a4c8%eno1', ports='', serviceTypeCode=1010, pid=45825, vmVersion='1.8.0_192', agentVersion='1.8.1', jvmInfo=JvmInfoBo{version=0, jvmVersion='1.8.0_192', gcTypeName='PARALLEL'}, initialStartTimestamp=0, container=false, status=null}]
2019-03-05 11:29:44 [DEBUG](entInfoServerInstanceListDataSource:73 ) add agentInfos TESTAPP(TOMCAT:1010) : [AgentInfo{applicationName='TESTAPP', agentId='test-agent', startTimestamp=1551750966003, hostName='digicap-ProLiant-DL380p-Gen8', ip='fe80:0:0:0:eff:8153:7d47:a4c8%eno1', ports='', serviceTypeCode=1010, pid=45825, vmVersion='1.8.0_192', agentVersion='1.8.1', jvmInfo=JvmInfoBo{version=0, jvmVersion='1.8.0_192', gcTypeName='PARALLEL'}, initialStartTimestamp=0, container=false, status=null}]
2019-03-05 11:29:44 [DEBUG](c.n.p.w.a.n.ServerBuilder :109) buildPhysicalServer:[AgentInfo{applicationName='TESTAPP', agentId='test-agent', startTimestamp=1551750966003, hostName='digicap-ProLiant-DL380p-Gen8', ip='fe80:0:0:0:eff:8153:7d47:a4c8%eno1', ports='', serviceTypeCode=1010, pid=45825, vmVersion='1.8.0_192', agentVersion='1.8.1', jvmInfo=JvmInfoBo{version=0, jvmVersion='1.8.0_192', gcTypeName='PARALLEL'}, initialStartTimestamp=0, container=false, status=null}]
2019-03-05 11:29:45 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :330) ActiveThreadTimerTask started.
2019-03-05 11:29:46 [INFO ](c.n.p.w.w.ActiveThreadCountHandler :330) ActiveThreadTimerTask started.
When I was force to register the bean about email, It was removed as soon as the quickstart-web was launched...
-> you need to find cause. you should see build logic.
Please show error log when batch execute.
Hi @minwoo-jung
When I registered Bean for mail in applicationContext-batch.xml and ran quickstart-web, the following error occurred:
2019-03-05 13:32:20 [DEBUG](iBasedUnixGroupsMappingWithFallback:44 ) Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping
2019-03-05 13:32:20 [DEBUG](o.a.h.u.Shell :320) Failed to detect a valid hadoop home directory
java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set.
at org.apache.hadoop.util.Shell.checkHadoopHome(Shell.java:302)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:327)
at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:78)
at org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:93)
at org.apache.hadoop.security.Groups.<init>(Groups.java:77)
at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:240)
at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:225)
at org.apache.hadoop.hbase.security.UserProvider.<clinit>(UserProvider.java:56)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:214)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:150)
at com.navercorp.pinpoint.common.hbase.ConnectionFactoryBean.<init>(ConnectionFactoryBean.java:53)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:271)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1198)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1100)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:928)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:805)
at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:564)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:432)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:403)
at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:206)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1265)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1099)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-03-05 13:32:20 [DEBUG](o.a.h.u.Shell :396) setsid exited with exit code 0
2019-03-05 13:32:20 [DEBUG](o.a.h.s.Groups :80 ) Group mapping impl=org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback; cacheTimeout=300000; warningDeltaMs=5000
2019-03-05 13:32:20 [DEBUG](o.a.h.m.l.MutableMetricsFactory :42 ) field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginSuccess with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, sampleName=Ops, always=false, type=DEFAULT, valueName=Time, value=[Rate of successful kerberos logins and latency (milliseconds)])
2019-03-05 13:32:20 [DEBUG](o.a.h.m.l.MutableMetricsFactory :42 ) field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginFailure with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, sampleName=Ops, always=false, type=DEFAULT, valueName=Time, value=[Rate of failed kerberos logins and latency (milliseconds)])
2019-03-05 13:32:20 [DEBUG](o.a.h.m.l.MutableMetricsFactory :42 ) field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.getGroups with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, sampleName=Ops, always=false, type=DEFAULT, valueName=Time, value=[GetGroups])
2019-03-05 13:32:20 [DEBUG](o.a.h.m.i.MetricsSystemImpl :221) UgiMetrics, User and group related metrics
2019-03-05 13:32:20 [DEBUG](o.a.h.s.a.u.KerberosName :88 ) Kerberos krb5 configuration not found, setting default realm to empty
2019-03-05 13:32:20 [DEBUG](o.a.h.s.UserGroupInformation :195) hadoop login
2019-03-05 13:32:20 [DEBUG](o.a.h.s.UserGroupInformation :144) hadoop login commit
2019-03-05 13:32:20 [DEBUG](o.a.h.s.UserGroupInformation :174) using local user:UnixPrincipal: digicap
2019-03-05 13:32:20 [DEBUG](o.a.h.s.UserGroupInformation :785) UGI loginUser:digicap (auth:SIMPLE)
2019-03-05 13:32:20 [INFO ](o.a.h.h.z.RecoverableZooKeeper :120) Process identifier=hconnection-0x4c33c880 connecting to ZooKeeper ensemble=localhost:2181
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:host.name=digicap-ProLiant-DL380p-Gen8
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:java.version=1.8.0_192
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:java.vendor=Oracle Corporation
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:java.home=/opt/pinpoint/jdk/8/jre
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:java.class.path=/opt/pinpoint/pinpoint/.mvn/wrapper/maven-wrapper.jar
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:java.io.tmpdir=/tmp
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:java.compiler=<NA>
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:os.name=Linux
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:os.arch=amd64
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:os.version=4.15.0-45-generic
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:user.name=digicap
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:user.home=/home/digicap
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :100) Client environment:user.dir=/opt/pinpoint/pinpoint
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ZooKeeper :438) Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=hconnection-0x4c33c8800x0, quorum=localhost:2181, baseZNode=/hbase
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ClientCnxn :975) Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ClientCnxn :852) Socket connection established to localhost/127.0.0.1:2181, initiating session
2019-03-05 13:32:20 [INFO ](o.a.h.h.s.o.a.z.ClientCnxn :1235) Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x169471e4484002c, negotiated timeout = 40000
2019-03-05 13:32:21 [WARN ](o.s.w.c.s.XmlWebApplicationContext :551) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hbaseAgentEventDao': Unsatisfied dependency expressed through field 'hbaseOperations2'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender] for bean with name 'alarmMessageSender' defined in class path resource [batch/applicationContext-batch.xml]; nested exception is java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
2019-03-05 13:32:21 [INFO ](c.s.u.ThreadPoolExecutorFactoryBean:203) Shutting down ExecutorService 'hbaseThreadPool'
2019-03-05 13:32:21 [ERROR](o.s.w.c.ContextLoader :350) Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hbaseAgentEventDao': Unsatisfied dependency expressed through field 'hbaseOperations2'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender] for bean with name 'alarmMessageSender' defined in class path resource [batch/applicationContext-batch.xml]; nested exception is java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender] for bean with name 'alarmMessageSender' defined in class path resource [batch/applicationContext-batch.xml]; nested exception is java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1387)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:639)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:607)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1486)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:425)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:403)
at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:206)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1265)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1099)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)
... 24 more
Caused by: java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:251)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:401)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1434)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1379)
... 34 more
Mar 05, 2019 1:32:21 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hbaseAgentEventDao': Unsatisfied dependency expressed through field 'hbaseOperations2'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender] for bean with name 'alarmMessageSender' defined in class path resource [batch/applicationContext-batch.xml]; nested exception is java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender] for bean with name 'alarmMessageSender' defined in class path resource [batch/applicationContext-batch.xml]; nested exception is java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1387)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:639)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:607)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1486)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:425)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:403)
at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:206)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1265)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1099)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)
... 24 more
Caused by: java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:251)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:401)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1434)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1379)
... 34 more
Mar 05, 2019 1:32:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Mar 05, 2019 1:32:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Mar 05, 2019 1:32:21 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Mar 05, 2019 1:32:21 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Mar 05, 2019 1:32:21 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Mar 05, 2019 1:32:21 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [localhost-startStop-1-SendThread(localhost:2181)] but has failed to stop it. This is very likely to create a memory leak.
Mar 05, 2019 1:32:21 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [localhost-startStop-1-EventThread] but has failed to stop it. This is very likely to create a memory leak.
Mar 05, 2019 1:32:21 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Mar 05, 2019 1:32:21 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-28080"]
Mar 05, 2019 1:32:26 PM org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already. Could not load . The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
Mar 05, 2019 1:32:31 PM org.apache.catalina.loader.WebappClassLoader findResourceInternal
Thanks a lot
you should read error log.^^
Find cause for this log.
Caused by: java.lang.ClassNotFoundException: com.navercorp.pinpoint.web.alarm.DefaultAlarmMessageSender
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:251)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:401)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1434)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1379)
... 34 more
@minwoo-jung
please check this link : https://naver.github.io/pinpoint/alarm.html#2-batch-properties-%EC%84%A4%EC%A0%95
The class that sends emails is already registered as Spring bean in applicationContext-batch.xml.:
I think this is a misrepresentation. If you check the file for both 1.8.1 and 1.8.2 release versions, the bean setting for the mail does not exist.
As you advised, the corresponding Java file(DefaultAlarmMessageSender.java, SpringSmtpMailSender.java....... .. ...)
does not exist in the source code of 1.8.1 and 1.8.1.
so.. When I added(from here : https://github.com/naver/pinpoint/tree/master/web/src/main/java/com/navercorp/pinpoint/web/alarm) and built the file, there was a maven build error about cannot find symbol...
like this :
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:41 min
[INFO] Finished at: 2019-03-05T15:29:39+09:00
[INFO] Final Memory: 103M/1605M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project pinpoint-web: Compilation failure: Compilation failure:
[ERROR] /opt/pinpoint/pinpoint/web/src/main/java/com/navercorp/pinpoint/web/alarm/SpringSmtpMailSender.java:[36,45] error: cannot find symbol
[ERROR] symbol: class MailSender
[ERROR] /opt/pinpoint/pinpoint/web/src/main/java/com/navercorp/pinpoint/web/alarm/SpringSmtpMailSender.java:[52,45] error: cannot find symbol
[ERROR] symbol: method getPinpointUrl()
[ERROR] location: variable batchConfiguration of type BatchConfiguration
[ERROR] /opt/pinpoint/pinpoint/web/src/main/java/com/navercorp/pinpoint/web/alarm/SpringSmtpMailSender.java:[53,42] error: cannot find symbol
[ERROR] symbol: method getBatchEnv()
[ERROR] location: variable batchConfiguration of type BatchConfiguration
[ERROR] /opt/pinpoint/pinpoint/web/src/main/java/com/navercorp/pinpoint/web/alarm/SpringSmtpMailSender.java:[58,71] error: cannot find symbol
[ERROR] symbol: method getSenderEmailAddress()
[ERROR] location: variable batchConfiguration of type BatchConfiguration
[ERROR] /opt/pinpoint/pinpoint/web/src/main/java/com/navercorp/pinpoint/web/alarm/SpringSmtpMailSender.java:[64,4] error: method does not override or implement a method from a supertype
[ERROR] /opt/pinpoint/pinpoint/web/src/main/java/com/navercorp/pinpoint/web/alarm/SpringSmtpMailSender.java:[73,12] error: cannot find symbol
[ERROR] symbol: class AlarmMailTemplate
[ERROR] location: class SpringSmtpMailSender
[ERROR] /opt/pinpoint/pinpoint/web/src/main/java/com/navercorp/pinpoint/web/alarm/SpringSmtpMailSender.java:[73,49] error: cannot find symbol
[ERROR] symbol: class AlarmMailTemplate
[ERROR] location: class SpringSmtpMailSender
[ERROR] -> [Help 1]
It's too hard.... :(
I think my approach to the problem is wrong. How can we solve this?
Hello, @DevelopDestroyer
When you are using the source code of 1.8.1.
I think you should take a look at the docs for 1.8.1, not the latest snapshot version.
Above link(https://naver.github.io/pinpoint/alarm.html#2-batch-properties-%EC%84%A4%EC%A0%95) directs to the latest snapshot.

try checking the docs for 1.8.1. According to what you've been showing us so far, I think it won't be so hard with the right docs. :)
@RoySRose @minwoo-jung
I didn't know that the Guide had a version-specific tab. It's my mistake. T.T
So, I wrote a test code and confirmed that my test code was executed when executing the batch!
I will now develop the actual mail transfer function by referring to the latest commit data.
Thank you very much for the comments!
@DevelopDestroyer
Good for you :)
Usually, most of the open-source projects have version-specific documents. Since features varies from version to version, the guide must also change.
Feel free to close the issue when you're done :)
@DevelopDestroyer
I'm glad that you good.
@DevelopDestroyer
do I have to add batch.properties file in quickstart/web/src/main/resources for sending the mail?
Hi @adiboy6
It's not adding, just it's modifying. The path(quickstart/web/src/main/resources) does not contain the file.
And, modify the files that exist at the top of the quickstart directory.(do not modify in "quickstart/~/~.." path because when you run a quick start, it is initialized.)
The easiest way to do this is to search all batch.properties files and make the same changes as your settings. ^^;
Hey @DevelopDestroyer ,
So you say that change the bath.properties in pinpoint/web/src/main/resource folder?
also, where to add the bean for implementing AlarmMessageSender?
@adiboy6
So you say that change the bath.properties in pinpoint/web/src/main/resource folder?
=> yes, and you must maven rebuild after that.
also, where to add the bean for implementing AlarmMessageSender?
=>I used applicationContext-batch.xml