Re:

Yao Qi <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
On Fri, Apr 23, 2010 at 9:34 AM, Ping Mao <[email protected]> wrote:
> Hi,
>
> I am adding trycatchfinally block in my instrumentation following the example.
> The following code is my transformation used through java agent which has been
> simplified to leave only the problematic instrumentation. It puts only a try
> finally to the method. Instrumented class seems fine. But some jsp files in
> Websphere application server 6.1, such as AppServerConfigGenPropLayout.jsp will
> not be loaded successfully after instrumentation. That is, without
> instrumentation, this page is loaded and initialized in websphere application
> server correctly, promptly; after this simple instrumentaion, the it will block
> the application server for about 70 mins and then comes up with some errors --
> I guess the errors are due to the long time stuck, so servlet is not
> initialized correctly. So why it blocks the application server, with CPU always
> 50% usage? websphere server doesn't respond for sendsignal when try to get a
> thread dump at the time. I know it is hard to try my case because it needs
> websphere, but anybody has any idea that what could be wrong? Anything I can
> try to resolve this issue? If it is needed, I can send along this jsp file.

We are using ASM also to instrument Webpshere products, and we even
instrument more than what you did.

Your transformer will instrument a huge number of classes, if you
don't do filter.  In our case, we filter some classes by full name.
Here are some suggestions,

1. You should go to have a check how many classes you instrumented.
If many classes are instrumented, it should be slow.
2.  IIRC, some classes in webpshere and IBM jdk can't be instrumented,
for example, some classes related to security.  You should skip
instrumentation to them.  Please only instrument classes that you are
interested in.

-- 
Yao Qi <qiyaoltc AT gmail DOT com>    GNU/Linux Developer
http://duewayqi.googlepages.com/
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.