c*n
2 楼
I have a jar that contains a Blah class
and in Blah() ctor it somehow calls System.gc()
now let's say I use the jar that contains Blah(), and call new Blah().
I would get the gc(), so I am trying to detect this call ----- I'm not sure
where it called the "new Blah()" and System.gc() . I'm trying to do
through aspectj, by doing a pointcut on System.gc
but the problem is, now if I include the Blah() implementation in my code,
it's able to detect it, but if I just include the Blah() jar, it can't weave
and detect it.
I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
Thanks
and in Blah() ctor it somehow calls System.gc()
now let's say I use the jar that contains Blah(), and call new Blah().
I would get the gc(), so I am trying to detect this call ----- I'm not sure
where it called the "new Blah()" and System.gc() . I'm trying to do
through aspectj, by doing a pointcut on System.gc
but the problem is, now if I include the Blah() implementation in my code,
it's able to detect it, but if I just include the Blah() jar, it can't weave
and detect it.
I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
Thanks
T*g
4 楼
any detail for ur pointcut, advice, and eng?
sure
weave
【在 c******n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: I have a jar that contains a Blah class
: and in Blah() ctor it somehow calls System.gc()
: now let's say I use the jar that contains Blah(), and call new Blah().
: I would get the gc(), so I am trying to detect this call ----- I'm not sure
: where it called the "new Blah()" and System.gc() . I'm trying to do
: through aspectj, by doing a pointcut on System.gc
: but the problem is, now if I include the Blah() implementation in my code,
: it's able to detect it, but if I just include the Blah() jar, it can't weave
: and detect it.
: I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
sure
weave
【在 c******n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: I have a jar that contains a Blah class
: and in Blah() ctor it somehow calls System.gc()
: now let's say I use the jar that contains Blah(), and call new Blah().
: I would get the gc(), so I am trying to detect this call ----- I'm not sure
: where it called the "new Blah()" and System.gc() . I'm trying to do
: through aspectj, by doing a pointcut on System.gc
: but the problem is, now if I include the Blah() implementation in my code,
: it's able to detect it, but if I just include the Blah() jar, it can't weave
: and detect it.
: I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
相关阅读
请问Hadoop怎样入门 (转载)Java有没有什么好用的grid library?请教: JAVA 和移动互联网 两个专业 (转载)C# 转JAVA问个 Maven 的问题准备做一个旅游的网站,需要前台web design 和 后台的解决方案entry level java positions-contractor那些在线java 课程比较好求Big Data Principles and best practices of scalable realti (转载)我也想问个crawler的问题问题流的架构/设计问题Job opportunity in Alibaba Bay Area为什么说码农是最倒霉的 (转载)编程语言问个 maven multi-module project dependency 的问题生物老博后准备自学Java,求指教!找人一起学习Java EE问一个关于intellj idea很傻的问题?问一个java基础的初始化的问题,一直搞不明白 (转载)我试了一下,马上就喜欢上了