星期一, 四月 09, 2007

Start the Eclipse TPTP Profiling Agent under the Standalone Mode in a Linux Box

I did this long ago. Since I'm not required to do it repeatedly, it took me another 15 minutes to get warmed up. This time I'm recording the procedures here as a preparation for tomorrow's exploration on why the hell that tomcat instance was taking so long to start up.
  1. JVM arguments: -XrunpiAgent:server=standalone,file=/home/iusr/tc.trcxml,profile=/home/iusr/piAgent.options,filters=/home/iusr/piAgent.filters. It's convenient to export all this twittering to JAVA_OPTS which is used by tomcat to pass to JVM;
  2. Adjust the LD_LIBRARY_PATH environment variable to include directory "<eclipse_install_or_ext_point>/plugins/org.eclipse.hyades.execution.<OS>.<CPU_ARCH>_<VERSION>", e.g., in my Edgy box it's "/usr/local/eclipse-extension/eclipse.org/tptp/eclipse/plugins/org.eclipse.hyades.execution.linux.x86_4.2.2.v200701141614";
  3. Compose the profile configuration, filters configuration. Refer to http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.tptp.platform.doc.user/ref/rsaproffilt.htm and http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.tptp.platform.doc.user/tasks/teprofsa.htm for the proper format.
  4. Run the java class, of course:)
A profile configuration consists several entries, here's an example ("^\*.*$" lines stand for comments):
* all | none
MONITOR_MODE = all
* true | false
FILTERS = true
* none | deletes | frees | moves | deletesAndMoves | movesAndFrees
TRACK_GC_EVENT_TYPES = movesAndFrees
* static | relocatable | staticAndRelocatable
ID_STYLE = staticAndRelocatable
* true | false
* OPTIONS = false
TIMESTAMPS = true
METHOD_COUNTS = true
OBJ_ALLOC_IS_ARRAY = true
* none | normal | boundary | contiguous | boundaryAndContiguous
STACK_INFORMATION = contiguous
* true | false
* TICKET = true
* full | none | noObjectCorrelation
TRACE_MODE = full
* true | false
* TRACE_ID_REFS = true
Apparently this configuration requires much work to do, so my CPU got 99% utilized just now:P.
The filters configuration is more straightforward, only a wildcard string indicating the desired packages or classes, another wildcard string indicating the methods, and a directive indicating the whether matching packages or classes are to be included or excluded. Here's an example:
package = com.*
method = *
mode = INCLUDE
Since some subtle differences amongst different Linux distros and versions, the configuration above varies. I once saw a web page saying it's necessary to add the directory "<eclipse_install_or_ext_point>/plugins/org.eclipse.hyades.execution.<OS>.<CPU_ARCH>_<VERSION>" not only to LD_LIBRARY_PATH but also to PATH. I haven't tried this out yet, since adding it to LD_LIBRARY_PATH works every time and appears to be more reasonable. Particularly, if the piAgent failed to get loaded or started, take a look at the output of `ldd <eclipse_install_or_ext_point>/plugins/org.eclipse.hyades.execution.<OS>.<CPU_ARCH>_<VERSION>/libpiAgent.so` to check out if there's anything dependent missing.
Whoa, I cannot help starting the agent on our main testing machine to find out what the hell contributed to the latencies.

星期五, 四月 06, 2007

Catch ya~

Well, I don't know how to describe the feeling when I pick someone up by recognizing his/her blog, after losing his/her track for some years.
Here, this is the guy I'm talking about . Oddly as usual, I even have not contacted him before by any means:D
What I know about him are some legendary stories, and an always empty seat that would be his if he wouldn't have been absent at a student's community I joined. After some months, I took his seat, but I know I'm a much lesser stead, because, you know, I can never have legendary stories:D
I'm always fond of tracking talent people around. It's always encouraging to know how distant I am from the talents.

星期二, 四月 03, 2007

Need a real portable browser? K-Melon to the rescue!

I'd never imagined that one day I would be working in a very much limited environment, and thus applications like Portable Firefox which tend to be as much __green__ as possible had never got my attention. But nowadays, I've completely changed my attitude towards such applications.
Accessing windows registry? Forbidden. Configuring system services? Forbidden. Mapping network drivers other than the ones specified by the almighty administrator(s)? Forbidden. Installing an ActiveX plugin such as Adobe Flash Player to the poor naked IE? Forbidden, of course. Although I've always had enough with those bursting flash objects in web pages, being expropriated the chance to selectively enjoy good flash objects is very unpleasant. Right, just unpleasant, and it can never be frustrating, muhaha!
Time comes to introduce a very old friend of mine that for long I've even forgotten its existence: the tiny browser named K-Melon. It's really a very old friend of mine, no kidding. It was my first alternative choice of browsers when I was a really newbie using Windows 98 SE. By using K-Melon, I gradually got to know firebird, the bird which today has mutated to an animal called firefox, and some other browsers sharing the same Gecko rendering kernel. I admit it was not very attractive at that time, with an ugly UI, lacking enough extension and plugins; you'll have to forgive my nearsightedness, because browsers other than IE didn't have an easy life to deal with at that time, and neither were their users that had chosen them as their primary or even secondary browser. So gradually it disappeared from my hard drive.
Till just now:)
As what I mentioned above, I'm currently working in a very limited environment and I even cannot install a flash player plugin to the IE I'm using. Moreover, I cannot install any other applications since I don't have the mythical permissions of accessing both registry and some file systems. What's more, even Portable Firefox cannot start due to some failures in the underlying XPCOM layer. Cool...
For God's sake, K-Melon is working very well even under such circumstances, the only problem was that all flash player installation programs I grabbed from adobe.com couldn't run properly, mentioning me that I was not the almighty administrator whom I think I can never be. Nevertheless, it's not even a competent problem for someone who has a rough understanding about the Mozilla family browsers: copy what you have in $MOZILLA_OR_FIREFOX_OR_WHATEVER/plugins/ that have something to do with flash to the same named directory in the K-Melon installation directory, and restart your running K-Melon if there's any. Then navigate to wherever a flash object dwells, whoa, I have my beloved flash now:)
It's still mysterious why firefox and Portable Firefox failed on the system, they should have followed well the Unix philosophy, or am I just putting too much burden on them?:) Never mind, I'd never thought that those Flash objects hungering for CPU and memory could some day be so genial as well after several days of parting.

星期二, 三月 20, 2007

Linked List Patented?!?!

Not quite sure about this, but from a recent clue posted on slashdot, this insane patent is probably true. And some comments on slashdot points out it's triply linked list that got patented, not our good old linked list or doubly linked list. Nevertheless, it's still not that difficult to make varieties of existing data structures and/or algorithms and register a patent for it.
Whoa, I'd better go back to my algorithm books and make a summary of remaining patent-able data structures and/or algorithms. Oops, first of all, I need a companion with a US nationality. Who's interested?
I see in your eyes, the same scorn that would take the heart of me.
All mighty US patent agencies! Haven't they realized most computer stuff originate from the US, and with their fingers they can probably affect this fragile industry?

星期一, 三月 19, 2007

Buzz Fuzz

It's a damn cold night. The drizzle today just drove me back to the winter while I'm wearing thinner clothes. There always seems to be only 2 seasons here: the summer and the winter. Spring is the lesser winter, and fall, too.
Well, I've been absent from blogging for quite some days, just like once I was absent from so many lessons. The only difference is I got a lot while I was absent from university lessons, and I lost a lot while I was absent from blogging, not only the pleasure and the habit, but also the passion of blogging, maybe the passion of life itself.
Nevertheless, I'm delighted to see the title "Buzz Fuzz" is not an invention of mine, since I just decided to put the 2 amusing words side by side for fun.
The only pleasing achievement is I'm now very accustomed to living on Ubuntu Linux, the most friendly Linux distro to the green hands of mine. Look at me, I have really green hands even that I've been using Linux for 5 years around. Of course this is reasonable, and amongst all the reasons the most challenging one is the communication with the Windows people. However, I'm neglecting these problems and won't care about those people anymore. Fuck off the M$ stuff. I'm sticking to Ubuntu.
I'm lost...
Black cursors are better than white ones. Very sparkling.
And beryl is really really amazingly cool. You can count on it. Not only a magnificent desktop amusement, but also a very productive tool making the desktop utilized, if it's used properly. No bother comes with the key shortcuts.
Some hours later, I'm going back to that snail-slow stuff. Fuck that.

星期三, 三月 14, 2007

Testing Email Publishing

May this help make blogging a little bit easier...

星期五, 九月 01, 2006

休息一下

请了半天假,到家只剩下半天的半天,不管怎么样也算休息了,先打个盹睡上一小觉……

起来后照常上Google Reader看新东西,Firefox 2.0 beta 2出炉算个不小的消息,看来大家用的都比较舒服,我也去下了一个,估计肯定要遇到扩展的兼容性问题,所以没覆盖老的1.5安装,不过打开一看常用的插件(AdBlock Plus!,Cookie Safe,FireBug,FlashBlock,FlashGot,FoxyProxy,FoxyTunes,Google Browser Sync,Google Notebook以及Google Toolbar)还都能用--至少显示着能用的样子,看来一会儿满可以覆盖了老的1.5安装了=)

公司自己开发并运营的网站--健康114--今天正式对外发布,boss还参加了个新闻发布会什么的。面对着这个让整个公司忙活了近3个月的网站,我不知道该做何感想。3个月前我记得我是满腔热情的投入进来;2个月前我一个人负责的社区模块刚刚处于设计阶段,感觉还算不错;1个月前是魔鬼开发,同时网站基本成形,那个时候如果让我相信这个东西能带来收入我一定不信;今天它正式上线了,不管它在我眼里还有多少不足之处。下一个开发阶段马上又要开始了,我只希望能多休息一下。

还有,喜欢上了Garnet Crow的Mysterious Eyes,很不错的一首歌,可以从emule上 下载

Technorati :