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
|
|