由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - help for running CPU intensive program!!
相关主题
Re: help for running CPU - 背景Re: help for running CPU intensive progr
Re: Any good java profiler tools?structure in Java??
java memory problem with redhat enterprise一道面试题没回答好,学CS的看看 (转载)
What's new in Java 6?尚未完成定义的类怎么可以作变量类型?
out of memory帮我了解一下64bit JVM
eclipse java profiler pluginjava和c有帮助嘛?
关于java执行SQL之后的内存问题?Java basic concept(4)
java小弱请教 java -Xmx40960mWhere I can find comparison of JVMs
相关话题的讨论汇总
话题: cpu话题: intensive话题: program话题: memory话题: use
进入Java版参与讨论
1 (共1页)
m********r
发帖数: 23
1
I have a numerical analysis program written in Java. It takes natural
numbers and does some computations and produces interesting output. It's
very CPU/memory intensive. The fastest machine I can access, a P4 Linux
server with 1G memory, can only handle up to 19. Wonder if someone here can
help me to get more results. What you have to do is pretty simple - run the
program and send me the output. It should run fine on JDK 1.2 or higher. If
you are interested, please leave your email below or send
st
发帖数: 1685
2
tried to improvement the speed with dynamic programming?
and tried to use C/C++ instead of java?

【在 m********r 的大作中提到】
: I have a numerical analysis program written in Java. It takes natural
: numbers and does some computations and produces interesting output. It's
: very CPU/memory intensive. The fastest machine I can access, a P4 Linux
: server with 1G memory, can only handle up to 19. Wonder if someone here can
: help me to get more results. What you have to do is pretty simple - run the
: program and send me the output. It should run fine on JDK 1.2 or higher. If
: you are interested, please leave your email below or send

f********h
发帖数: 149
3
profiling your code.

【在 m********r 的大作中提到】
: I have a numerical analysis program written in Java. It takes natural
: numbers and does some computations and produces interesting output. It's
: very CPU/memory intensive. The fastest machine I can access, a P4 Linux
: server with 1G memory, can only handle up to 19. Wonder if someone here can
: help me to get more results. What you have to do is pretty simple - run the
: program and send me the output. It should run fine on JDK 1.2 or higher. If
: you are interested, please leave your email below or send

r*****s
发帖数: 985
4
maybe you can use something like condor to use the shared
computing resources?

【在 m********r 的大作中提到】
: I have a numerical analysis program written in Java. It takes natural
: numbers and does some computations and produces interesting output. It's
: very CPU/memory intensive. The fastest machine I can access, a P4 Linux
: server with 1G memory, can only handle up to 19. Wonder if someone here can
: help me to get more results. What you have to do is pretty simple - run the
: program and send me the output. It should run fine on JDK 1.2 or higher. If
: you are interested, please leave your email below or send

g*****g
发帖数: 34805
5
You should isolate your problem first. If it's just that your CPU is not fast
enough, it would be slow, but still able to handle. If you are short of
memory. Add memory, increase xmx, put your unused large object into null, or
consider C/C++ alternative.

【在 m********r 的大作中提到】
: I have a numerical analysis program written in Java. It takes natural
: numbers and does some computations and produces interesting output. It's
: very CPU/memory intensive. The fastest machine I can access, a P4 Linux
: server with 1G memory, can only handle up to 19. Wonder if someone here can
: help me to get more results. What you have to do is pretty simple - run the
: program and send me the output. It should run fine on JDK 1.2 or higher. If
: you are interested, please leave your email below or send

c*****t
发帖数: 1879
6
1. make sure that you used the best algorithm for the problem.
Use Greedy, Dynamic Programming, Divide-n-Conquer etc rather
than brute force.
2. use a profiler to determine where the problem lies. javap,
which is included with JDK, is a simple enough profiler that
you could use.
3. general java optimization tips:
1. avoid memory allocations (i.e. reduce object creation).
This is particularly true if you are doing grid computing.
If you are not careful, you could be al

【在 m********r 的大作中提到】
: I have a numerical analysis program written in Java. It takes natural
: numbers and does some computations and produces interesting output. It's
: very CPU/memory intensive. The fastest machine I can access, a P4 Linux
: server with 1G memory, can only handle up to 19. Wonder if someone here can
: help me to get more results. What you have to do is pretty simple - run the
: program and send me the output. It should run fine on JDK 1.2 or higher. If
: you are interested, please leave your email below or send

1 (共1页)
进入Java版参与讨论
相关主题
Where I can find comparison of JVMsout of memory
an Array questioneclipse java profiler plugin
How would clear a BufferedImage?关于java执行SQL之后的内存问题?
String[] a = c.toArray(new String[0])java小弱请教 java -Xmx40960m
Re: help for running CPU - 背景Re: help for running CPU intensive progr
Re: Any good java profiler tools?structure in Java??
java memory problem with redhat enterprise一道面试题没回答好,学CS的看看 (转载)
What's new in Java 6?尚未完成定义的类怎么可以作变量类型?
相关话题的讨论汇总
话题: cpu话题: intensive话题: program话题: memory话题: use