PhpStorm start takes really long

Answered

Hey,

 

I upgraded to windows 10 yesterday and since that, the start of PhpStorm takes really long (about 10 minutes - no hdd activities, no cpu usage, it just does nothing). Is there a way to profile or debug the startup, so that I could detect whats taking that long?

 

Thanks of help!

 

Best

Christian

21 comments

Hey,

 

I'll attach log. I started PhpStorm at 11:43:

 

2016-07-01 11:49:31,325 [ 109855] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2016-07-01 11:49:31,425 [ 109955] INFO - #com.intellij.idea.Main - IDE: PhpStorm (build #PS-143.2370.33, 29 Apr 2016 00:00)
2016-07-01 11:49:31,426 [ 109956] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, x86)
2016-07-01 11:49:31,426 [ 109956] INFO - #com.intellij.idea.Main - JRE: 1.8.0_77-b03 (Oracle Corporation)
2016-07-01 11:49:31,426 [ 109956] INFO - #com.intellij.idea.Main - JVM: 25.77-b03 (Java HotSpot(TM) Server VM)
2016-07-01 11:49:31,426 [ 109956] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=C:\Program Files (x86)\JetBrains\PhpStorm 10.0.3\bin\PhpStorm.exe.vmoptions -Xbootclasspath/a:C:\Program Files (x86)\JetBrains\PhpStorm 10.0.3\lib\boot.jar -Didea.platform.prefix=PhpStorm -Didea.no.jre.check=true -Didea.paths.selector=WebIde100
2016-07-01 11:49:31,427 [ 109957] INFO - #com.intellij.idea.Main - ext: C:\Program Files (x86)\JetBrains\PhpStorm 10.0.3\jre\jre\lib\ext: [access-bridge-32.jar, cldrdata.jar, dnsns.jar, jaccess.jar, jfxrt.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunmscapi.jar, sunpkcs11.jar, zipfs.jar]
2016-07-01 11:49:31,496 [ 110026] INFO - #com.intellij.idea.Main - JNA library loaded (32-bit) in 69 ms
2016-07-01 11:49:31,500 [ 110030] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2016-07-01 11:49:31,502 [ 110032] INFO - #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
2016-07-01 11:49:38,896 [ 117426] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor plugin-intelliLang.xml
2016-07-01 11:49:39,496 [ 118026] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor js-nashorn-support.xml
2016-07-01 11:49:39,874 [ 118404] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-java-support.xml
2016-07-01 11:49:40,016 [ 118546] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-properties-support.xml
2016-07-01 11:49:40,807 [ 119337] INFO - llij.ide.plugins.PluginManager - 58 plugins initialized in 2150 ms
2016-07-01 11:49:40,833 [ 119363] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), Apache config (.htaccess) support (143.2370.33), Behat Support (143.2370.33), Blade Support (143.2370.33), CSS Support (143.SNAPSHOT), CVS Integration (11), CoffeeScript (2.0), Command Line Tool Support (143.2370.33), Copyright (8.1), Database Tools and SQL (1.0), Drupal Support (143.2370.33), File Watchers (143.2370.33), GNU GetText files support (*.po) (136.SNAPSHOT), Gherkin (999.999), Git Integration (8.1), GitHub (143.2370.33), Google App Engine Support for PHP (143.2370.33), HAML (143.SNAPSHOT), HTML Tools (2.0), IDEA CORE (143.SNAPSHOT), Ini4Idea (143.2370.33), IntelliLang (8.0), Java Server Pages Integration (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), LESS support (143.SNAPSHOT), PHP (143.2370.33), PHP Remote Interpreter (143.2370.33), Perforce Integration (2.0), Performance Testing (1.1), Phing Support (143.2370.33), QuirksMode (143.SNAPSHOT), REST Client (143.SNAPSHOT), ReStructuredText Support (136.SNAPSHOT), Refactor-X (2.01), Remote Hosts Access (0.1), SASS support (143.SNAPSHOT), SSH Remote Run (0.1), Settings Repository (143.2370.33), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TextMate bundles support (VERSION), Twig Support (143.2370.33), UML Support (1.0), Vagrant (0.6.VERSION), W3C Validators (2.0), WordPress Support (143.2370.33), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (143.SNAPSHOT), hg4idea (10.0)
2016-07-01 11:49:40,837 [ 119367] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: .ignore (1.5), BashSupport (1.5.8.143), Markdown (0.9.7), Markdown support (2016.1.20160405.143)
2016-07-01 11:49:40,837 [ 119367] INFO - llij.ide.plugins.PluginManager - Disabled plugins: Time Tracking (1.0)
2016-07-01 11:49:41,483 [ 120013] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=498008064
2016-07-01 11:49:41,552 [ 120082] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files (x86)\JetBrains\PhpStorm 10.0.3\bin\fsnotifier.exe
2016-07-01 11:49:41,566 [ 120096] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2016-07-01 11:49:42,849 [ 121379] ERROR - #com.intellij.lang.Language - Language with ID 'Markdown' is already registered: class net.nicoulaj.idea.markdown.MarkdownLanguage
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:115)
at com.intellij.lang.Language.<init>(Language.java:87)
at com.intellij.lang.Language.<init>(Language.java:72)
at org.intellij.plugins.markdown.lang.MarkdownLanguage.<init>(MarkdownLanguage.java:25)
at org.intellij.plugins.markdown.lang.MarkdownLanguage.<clinit>(MarkdownLanguage.java:22)
at org.intellij.plugins.markdown.lang.MarkdownFileType.<init>(MarkdownFileType.java:30)
at org.intellij.plugins.markdown.lang.MarkdownFileType.<clinit>(MarkdownFileType.java:27)
at org.intellij.plugins.markdown.lang.MarkdownFileTypeFactory.createFileTypes(MarkdownFileTypeFactory.java:25)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.initStandardFileTypes(FileTypeManagerImpl.java:287)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.<init>(FileTypeManagerImpl.java:247)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at com.intellij.util.pico.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:59)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:495)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:123)
at com.intellij.openapi.application.impl.ApplicationImpl.access$801(ApplicationImpl.java:91)
at com.intellij.openapi.application.impl.ApplicationImpl$12.run(ApplicationImpl.java:497)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:512)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:107)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:455)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:447)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:60)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:361)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2016-07-01 11:49:42,856 [ 121386] ERROR - #com.intellij.lang.Language - PhpStorm 10.0.4 Build #PS-143.2370.33
2016-07-01 11:49:42,856 [ 121386] ERROR - #com.intellij.lang.Language - JDK: 1.8.0_77
2016-07-01 11:49:42,856 [ 121386] ERROR - #com.intellij.lang.Language - VM: Java HotSpot(TM) Server VM
2016-07-01 11:49:42,857 [ 121387] ERROR - #com.intellij.lang.Language - Vendor: Oracle Corporation
2016-07-01 11:49:42,857 [ 121387] ERROR - #com.intellij.lang.Language - OS: Windows 10
2016-07-01 11:49:44,099 [ 122629] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2016-07-01 11:49:45,476 [ 124006] INFO - plication.impl.ApplicationImpl - 81 application components initialized in 6820 ms
2016-07-01 11:49:45,495 [ 124025] INFO - .intellij.idea.IdeaApplication - App initialization took 363446 ms
2016-07-01 11:49:46,104 [ 124634] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2016-07-01 11:49:49,718 [ 128248] INFO - ellij.project.impl.ProjectImpl - 119 project components initialized in 2981 ms
2016-07-01 11:49:49,824 [ 128354] INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 103 ms
2016-07-01 11:49:50,129 [ 128659] INFO - PerformancePlugin - Performance Plugin is in silent mode
2016-07-01 11:49:50,579 [ 129109] INFO - tartup.impl.StartupManagerImpl - D:/calco/calco/.idea/misc.xml case-sensitivity: false
2016-07-01 11:49:54,862 [ 133392] INFO - tor.impl.FileEditorManagerImpl - Project opening took 8217 ms
2016-07-01 11:49:57,669 [ 136199] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 3313ms; general responsiveness: 1/3 sluggish; EDT responsiveness: ok
2016-07-01 11:49:59,903 [ 138433] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 2231ms; general responsiveness: ok; EDT responsiveness: ok
2016-07-01 11:50:00,045 [ 138575] INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)

 

Thanks for your help.

 

Best
Christian

0

Could you please uninstall the application completely and install it back from a full package, maybe something has gone wrong during the patching.

If it's still slow, try moving the config folder (%UserProfile%\.WebIde100) somewhere else and restart PhpStorm.

0

Unfortunatly, this doesn't solved the problem. I uninstalled PhpStorm (including settings, etc.) and moved the .WebIde100 somewhere else. I downloaded 2016.2 EAP and installed it:

 

2016-07-01 13:49:24,506 [   6598]   INFO - .intellij.idea.IdeaApplication - App initialization took 253403 ms 

 

Is there a way to debug the app initialization? I'm just whondering what happens there in detail.

 

Best
Christian

0

Sorry for asking again, but could you please attach the EAP IDE log? As a text file preferably, maybe via some file hosting.

0

It's better to archive the whole log folder actually, so we also can take a look at the thread dumps.

0

Hm...there is only one file in the log directory (C:\Users\christian\.PhpStorm2016.2\system\log) called idea.log. I uploaded it here: http://www.xup.in/dl,10302119/idea.log/

0

This time it might load slow due to using an Oracle JRE.
Please try launching x86 version manually via PhpStorm.exe (as we don't have a bundled x64 JRE for Windows) and re-upload the log (for the third time. Troubleshooting, you know…)

0

Ok, I started the x86 version of PhpStorm. This time there is also a thread dump directory. I uploaded it with the log here: http://www.xup.in/dl,11548913/log.zip/

0

Hey again. Had you the time for checking the log files? Even with the new 2016.2 release, the problem still exists. :/

0

Hi,

How many unversioned/uncommitted files do you have in your View > Tool Windows > Version Control?

0

Hi,

there are only 5 unversioned files under version control:

  • .idea/misc.xml
  • .idea/modules.xml
  • .idea/copyright/profiles_settings.xml
  • .idea/{project-name}.iml
  • .idea/vcs.xml

Best
Christian

0

Thanks!

Do you use any compilers (like TypeScript) or task runners (like Gulp, Bower etc)?

0

No, I'm not using any of these task runners. Thanks for your help.

0

Are the project files located on a local disk or on a remote server/VM or mapped share?

Do you have any antivirus software with active monitoring algorithms?

0

The project files are located on my local disk and are shared to a vagrant vm via NFS. But also when my vm is not running, it tooks very long for PhpStorm to start up. I've to say, that this problem exists, since I upgraded to Windows 10. Before I never had problems with my development environment. Further, I think, the problem is not specific to a project. I can even close my open projects, exit PhpStorm and restart it for showing up the project listing window. It also takes about 6 minutes to come up. Thats why, I asked, wheather its possible to debug the relevant part (.intellij.idea.IdeaApplication - App initialization took 363446 ms) of the log output.

Yes, I'm running antivirus software from Avira. Thanks to your hint, I disabled the active monitoring, but without success. It also tooks about 6 minutes for PhpStorm to startup. I also had Avira running before I upgraded to Windows 10.

Best
Christian

0

I downloaded the YourKit profiler and connected it remotely to the PhpStorm Profiler Agent. It shows me a deadlock. Maybe, this is telling something to you guys:

Best
Christian

0

Thanks!

Could you, please, provide CPU snapshot taken when the performance issue is present? Instructions for taking the snapshot are available here: <https://intellij-support.jetbrains.com/hc/en-us/articles/207241235>.

0

Also, as you can see, the last called method is related to network interfaces.

Do you have any virtual network adapters in the system?

0

Hell, yeah, you're right! I'm using usb tethering from my smartphone to go online with my desktop. On Windows 8/10, this can freeze parts of your system, if you have the standard microsoft driver installed. According to this I updated the driver for the rndis device and now PhpStorm is starting as fast as ever. :)

Thank you both very much for the help. :))

 

Best
Christian

3

This is a life-saver! I've been having this problem for the past couple months and couldn't find information about it online anywhere. Updated my tethering driver (also connecting with my mobile via USB) and everything is super smooth now. Thanks!

I think this information should be more easily available though, it was very frustrating and time consuming. Maybe put it in your online documents? One regarding startup / performance?

0

Please sign in to leave a comment.