JSP and Crystal report CPU Usage problem..

本帖最後由 cma019 於 2010-1-30 01:54 編輯

I'm currently using linux as crystal report server with tomcat and apache.
I've also set up 2 instances of tomcat for load balancing
(not sure it's actually helpful or not...)

The problem is that whenever I generate a report, the server cpu usage will rise to 99.2%....
Although the server config is not that good..celeron 1.6g 512mb..
but i don't think it's normal...
here's the case
it took 1 minute to generate 1 report for 1 client
but if there are 2 client generating the same report concurrently, it will take 2 mins to  generate 2 report.  Therefore, both client's report will be shown at the same time after 2 mins.

Anyone has any hands on with JAVA and Crystal report can share some of their experience?

Thanks!!

I'm currently using linux as crystal report server with tomcat and apache.
I've also set up 2 instan ...
cma019 發表於 2010-1-30 01:51


個 report service 已經用盡所有資源,
所以你用兩個 instance 都幫唔到件事.

用兩粒 CPU ( 或 dual core ) , 或者可能會幫到手.
視乎個 report service 有無用到所有資源.

TOP

生成报表时, 你使用top命令查看哪个进程耗费cpu较多。如果是java进程,则通过优化java代码或者调整jvm参数试试。如果是crystal report server 的问题,就查下报表是不是不够优化。
要知道你服务器的详细情况才能帮你作性能的优化

TOP

It's JAVA using up 100% cpu resouces!
are there any ways to optimize the jave performance?
basically, there are no logic at all in JAVA code to be optimized..my jsp only contains  1 simple  sql statement to fill the report content, the sql statement itself can be executed in 2 sec.

TOP

你的数据量有多大. 你的jvm参数设的是多少. 一些简单的办法:
使用StringBuffer代替 + ,
尽量重用对象,
或者你把Java代码贴出来吧..呵呵.

TOP

本帖最後由 cma019 於 2010-2-17 16:06 編輯

not solved actually

TOP