我想使用spring insight来跟踪我的spring mvcwebapp.启动tc服务器2.5开发人员版时,我的应用程序出现了,但我在控制台中看到以下消息:
20.10.2011 09:24:24 com.springsource.insight.intercept.trace.SimpleFrameBuilder enter
FATAL: Frame stack exceeded MAX_FRAMES_PER_TRACE limit or has been aborted limit: 3000 frameCount: 3000 aborted: false
20.10.2011 09:24:24 com.springsource.insight.collection.errorhandling.AdviceErrorHandlingAspect ajc$around$com_springsource_insight_collection_errorhandling_AdviceErrorHandlingAspect$1$e76a6b03
FATAL: Error swallowed in advice adviceexecution(void com.springsource.insight.collection.AbstractOperationCollectionAspect.afterReturning(Object, JoinPoint.StaticPart))
Run Code Online (Sandbox Code Playgroud)
-
java.lang.IllegalStateException: Imbalanced frame stack! (exit() called too many times)
com.springsource.insight.intercept.trace.ThreadLocalFrameBuilder.exit(ThreadLocalFrameBuilder.java:61)
com.springsource.insight.collection.DefaultOperationCollector.exit(DefaultOperationCollector.java:111)
com.springsource.insight.collection.DefaultOperationCollector.exitNormal(DefaultOperationCollector.java:67)
com.springsource.insight.plugin.springtx.TransactionOperationCollectionAspect.ajc$afterReturning$com_springsource_insight_plugin_springtx_TransactionOperationCollectionAspect$2$e13fb3a0(TransactionOperationCollectionAspect.aj:61)
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724)
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$afterReturning$org_springframework_transaction_aspectj_AbstractTransactionAspect$3$2a73e96c(AbstractTransactionAspect.aj:78)
...
Run Code Online (Sandbox Code Playgroud)
我可以在此消息之后调用一些控制器操作,但在某些时候服务器只是拒绝处理我的请求并将相同的堆栈跟踪发送到浏览器.
有没有人有这个问题的经验?即使停用洞察力插件annotation,hibernate,jdbc或spring-tx不SOVE问题.
我想在Tomcat 6中使用Spring Insight.由于我无法控制的原因,我无法使用TC服务器.所以我正在考虑将Spring Insight与Tomcat 6集成.有没有人在此之前工作过,或者任何人都可以指出任何文档.
谢谢,Anuj
我有一个在tomcat上运行的Spring MVC Web应用程序.我需要监视我的应用程序的性能,记录每个方法调用所花费的时间以及参数的值.我需要对应用程序内所有控制器,服务,util类中的所有方法进行此日志记录.
我在前面已经看过这里发布的问题:如何记录Springframework中方法所花费的时间?
至于针对该问题提出的解决方案,我的案例中有以下问题.
1)使用Spring AOP进行日志记录 - 严格匹配需求,但据我所知,它需要为每个方法添加注释 - 更愿意避免更改当前应用程序.
2)Stagemonitor - 无法遵循安装说明 - 它需要安装docker,因为操作系统限制我无法安装.我正在使用openSUSE 11.3,其中docker可用于openSUSE 12.3+
3)SpringInsight - 这是一个很棒的工具,完全符合我的要求.但问题是,它运行的是vfabric-tc-server实例.我尝试使用Daniel在使用Spring Insight和Tomcat 6中提到的步骤在tomcat 7上设置它,但它没有进行锻炼,因为洞察应用程序中的任何jar都没有类com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader应该从server.xml引用它.尝试添加外部jar但它不起作用.
我想知道是否还有其他工具
- 不需要更改现有应用程序 - 简单配置应该是可接受的.
- 将提供方法级别的性能监控.
- 严格来说,不需要将现有应用程序迁移到其他服务器.
提前致谢 :)
我正在尝试使用tc Server Idea插件在Idea中运行我的应用程序并收到以下日志
Connected to server
wrapper | Starting the VMware vFabric tc Runtime instance - tcruntime-C-STS-vfabric-tc-server-developer-2.8.2.RELEASE-insight service...
wrapper | VMware vFabric tc Runtime instance - tcruntime-C-STS-vfabric-tc-server-developer-2.8.2.RELEASE-insight started.
[11:53:08.709] Not allowed to connect. Check role and password.
[11:53:08.709] There is an application at /bps. Starting redeploy...
[11:53:08.714] Not allowed to connect. Check role and password.
[11:53:08.715] Starting undeployment of /bps ...
[11:53:08.720] Not allowed to connect. Check role and password.
[11:53:08.721] Starting deployment of 'bps:war exploded' to /bps ...
[11:53:08.725] …Run Code Online (Sandbox Code Playgroud) spring ×3
spring-mvc ×2
java ×1
logging ×1
performance ×1
stack-frame ×1
tcserver ×1
tomcat6 ×1
tomcat7 ×1