Exporting EAR file in Eclipse taking long time
I'm working on a project on Eclipse, more specific RAD build. The EAR file exported is around 40 mb, last week it was taking 1 minute, today it开发者_运维技巧s taking more than 10 minutes. I didnt change much code, nor changed any config related to the JVM.
I export directly from RAD, right click on the project and export EAR.
So whats going wrong?
Thoughts:
Clearly something is different. What could it be?
- Your app: Could you now have lots more little graphics files or some such?
- Your app: could you be referencing some external resource eg. XSDs from somewhere remote, is it generating code at this point with some such reference?
- Environment: Disk drive. Are you exporting to some nearly full disk? Or a network drive that's suddenly really slow, or somehow a revision control system is trying to adopt what you are exporting.
- Environment: Memory. I've seen Eclipse get stupidly slow when paging is happening. Could you just have increased your memory usage a tad or now be running something new in the background?
As none of those apply (you really sure?) then I would do this:
- take the app to another workspace
- take the app to another machine
- Break the app down to pieces, binary chop until you find what the expensive bit
The problem is fixed, im not sure which of these fixed it, but one of them did:
- The output folder was shared on the network, stopped the sharing
- Defragmented the disk
- Emptied the Recycle Bin (it had almost 5 GB)
I made them all together, so i not sure which solved the problem, but i suspect one of the first two. It was a an OS problem, nothing to do with Eclipse.
精彩评论