1

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?

Thanks.

Btw , for CLOSE question fans, there are question like this:

Can I use a RAM disk to speed up my IDE?

Close those first.

Community
  • 1
  • 1
Koray Tugay
  • 22,894
  • 45
  • 188
  • 319
  • 2
    Since you have done all those things, perhaps - just perhaps - disk speed isn't the issue here? – Dariusz Jul 21 '13 at 09:02
  • @Dariusz I am not sure if you mean it or you are mocking me, then is it the processor speed? Or maybe the cache size? – Koray Tugay Jul 21 '13 at 09:05
  • 2
    The first law on performance optimization: 'The bottleneck is never where you think it is, not even close' – rene Jul 21 '13 at 09:09
  • [3.Identify the part of the system that is critical for improving the performance](http://en.wikipedia.org/wiki/Performance_tuning) – rene Jul 21 '13 at 09:12
  • 1
    @KorayTugay both. You apparently spent a lot of your time "speeding up" the startup without even knowing *what* really takes most time during the process. You should spend your time determining what is going slowly - and then, probably, you'd be able to fix the problem in minutes (or not be able to fix it at all, but it's still a valid definite answer). – Dariusz Jul 21 '13 at 10:53
  • @Dariusz Why are you commenting if it is a valid answer? – Koray Tugay Jul 21 '13 at 11:33

1 Answers1

4

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.

Steven Schlansker
  • 37,580
  • 14
  • 81
  • 100