Koray Tugay
Koray Tugay

Reputation: 23800

How to speed up Java Project by moving files to Ramdisk?

I have a simple maven - Java EE web application which I develop using IntelliJ and deploy to Glassfish server. The thing is, it takes about 15 seconds to deploy. I know it is not too long, but I am trying to make it even faster.

I installed RAMDISK and moved my project into that disk, it did not help. Then I moved Glassfish in the RAMDISK as well, however there was still no change in the performance.

Do I need to move JDK, JRE to the RAMDISK as well to see the change? Or even the IDE itself?

Why did not moving the project and the glassfish to RAMDISK make any change?

Upvotes: 1

Views: 1045

Answers (1)

Steven Schlansker
Steven Schlansker

Reputation: 38526

Perhaps your speed problem is not related to the disk. Maybe use a profiler to see where the time is actually being spent, and then optimize the slowest part. Repeat until startup is fast enough.

Upvotes: 4

Related Questions