PHPStorm: Slow startup on latest MacOS

Hi there,

i'm using PHPStorm on the latest MacOS on a Macbook Pro 15 Late (2017). For quite a while i experienced that PHPStorm takes approx. 15-20 seconds for startup.

Here's the logfile for one startup process:

2018-05-23 22:32:32,941 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2018-05-23 22:32:33,096 [ 155] INFO - #com.intellij.idea.Main - IDE: PhpStorm (build #PS-181.4203.565, 28 Mar 2018 12:33)
2018-05-23 22:32:33,096 [ 155] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.13.4, x86_64)
2018-05-23 22:32:33,096 [ 155] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-1136-b20 (JetBrains s.r.o)
2018-05-23 22:32:33,096 [ 155] INFO - #com.intellij.idea.Main - JVM: 25.152-b20 (OpenJDK 64-Bit Server VM)
2018-05-23 22:32:33,104 [ 163] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Xverify:none -XX:ErrorFile=/Users/danielmuhlbacher/java_error_in_phpstorm_%p.log -XX:HeapDumpPath=/Users/danielmuhlbacher/java_error_in_phpstorm.hprof -Djb.vmOptionsFile=/Applications/PhpStorm.app/Contents/bin/phpstorm.vmoptions -Didea.java.redist=jdk-bundled -Didea.home.path=/Applications/PhpStorm.app/Contents -Didea.executable=phpstorm -Didea.platform.prefix=PhpStorm -Didea.paths.selector=PhpStorm2018.1
2018-05-23 22:32:33,104 [ 163] INFO - #com.intellij.idea.Main - ext: /Applications/PhpStorm.app/Contents/jdk/Contents/Home/jre/lib/ext: [sunec.jar, nashorn.jar, cldrdata.jar, jfxrt.jar, dnsns.jar, localedata.jar, sunjce_provider.jar, meta-index, sunpkcs11.jar, jaccess.jar, zipfs.jar]
2018-05-23 22:32:33,104 [ 163] INFO - #com.intellij.idea.Main - ext: /System/Library/Java/Extensions: [MRJToolkit.jar]
2018-05-23 22:32:33,104 [ 163] INFO - #com.intellij.idea.Main - JNU charset: UTF-8
2018-05-23 22:32:33,123 [ 182] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 18 ms
2018-05-23 22:32:33,136 [ 195] INFO - #com.intellij.idea.Main - initializing environment
2018-05-23 22:32:33,136 [ 195] INFO - .intellij.util.EnvironmentUtil - loading shell env: /bin/bash -l -i -c '/Applications/PhpStorm.app/Contents/bin/printenv.py' '/private/var/folders/xc/fgp47vjj15g9mtd3nvzdxnf80000gn/T/intellij-shell-env.tmp'
2018-05-23 22:32:33,145 [ 204] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2018-05-23 22:32:33,146 [ 205] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (JRE-managed HiDPI)
2018-05-23 22:32:33,352 [ 411] INFO - .intellij.util.EnvironmentUtil - shell environment loaded (30 vars)
2018-05-23 22:32:33,369 [ 428] INFO - .intellij.util.EnvironmentUtil - LC_CTYPE=de_AT.UTF-8
2018-05-23 22:32:45,649 [ 12708] INFO - .intellij.idea.IdeaApplication - CPU cores: 8; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@27f96604[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@5f040e8d
2018-05-23 22:32:46,157 [ 13216] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-properties-support.xml
2018-05-23 22:32:46,157 [ 13216] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-java-support.xml
2018-05-23 22:32:46,353 [ 13412] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor js-nashorn-support.xml
2018-05-23 22:32:46,689 [ 13748] INFO - llij.ide.plugins.PluginManager - 66 plugins initialized in 748 ms
2018-05-23 22:32:46,691 [ 13750] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), AngularJS (181.4203.565), Apache config (.htaccess) support (181.4203.565), Behat Support (181.4203.565), Blade Support (181.4203.565), CSS Support (181.4203.565), CVS Integration (11), Codeception Framework (181.4203.565), CoffeeScript (181.4203.565), Command Line Tool Support (181.4203.565), Copyright (8.1), Database Tools and SQL (181.4203.565), Docker integration (181.4203.565), Drupal Support (181.4203.565), File Watchers (181.4203.565), GNU GetText files support (*.po) (181.4203.565), Gherkin (999.999), Git Integration (8.1), GitHub (181.4203.565), Google App Engine Support for PHP (181.4203.565), HTML Tools (2.0), HTTP Client (181.4203.565), Haml (181.4203.565), IDE Settings Sync (181.4203.565), IDEA CORE (181.4203.565), Ini4Idea (181.4203.565), IntelliLang (8.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Joomla! Support (181.4203.565), Less support (181.4203.565), Markdown support (181.4203.565), Mercurial Integration (10.0), NodeJS (181.4203.565), PHP (181.4203.565), PHP Docker (181.4203.565), PHP Remote Interpreter (181.4203.565), PHPSpec BDD Framework (181.4203.565), Perforce Integration (2.0), Performance Testing (181.4203.565), Phing Support (181.4203.565), PhpStorm Workshop (181.4203.565), QuirksMode (181.4203.565), ReStructuredText Support (181.4203.565), Refactor-X (2.01), Remote Hosts Access (0.1), SSH Remote Run (0.1), Sass support (181.4203.565), Settings Repository (181.4203.565), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TextMate bundles support (181.4203.565), Time Tracking (1.0), Twig Support (181.4203.565), UML Support (1.0), Vagrant (181.4203.565), Vue.js (181.4203.565), W3C Validators (2.0), WordPress Support (181.4203.565), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (181.4203.565), hunspell (1.0), tslint (181.4203.565)
2018-05-23 22:32:46,890 [ 13949] INFO - cloudConfig.CloudConfigManager - === Start.updateInitStatus ===
2018-05-23 22:32:46,891 [ 13950] INFO - cloudConfig.CloudConfigManager - === Start: JBA_NOT_CONNECTED ===
2018-05-23 22:32:46,891 [ 13950] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus ===
2018-05-23 22:32:46,932 [ 13991] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2018-05-23 22:32:46,939 [ 13998] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2018-05-23 22:32:46,977 [ 14036] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /Applications/PhpStorm.app/Contents/bin/fsnotifier
2018-05-23 22:32:46,989 [ 14048] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2018-05-23 22:32:47,302 [ 14361] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=0.0; restored: fontSize=12, fontScale=1.0
2018-05-23 22:32:47,315 [ 14374] INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files ===
2018-05-23 22:32:47,383 [ 14442] WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: Git4Idea]
2018-05-23 22:32:47,402 [ 14461] WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: hg4idea]
2018-05-23 22:32:47,531 [ 14590] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus.value: JBA_NOT_CONNECTED ===
2018-05-23 22:32:47,603 [ 14662] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.OptionsTopHitProvider$Activity@4d8c986e
2018-05-23 22:32:47,682 [ 14741] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2018-05-23 22:32:47,759 [ 14818] INFO - gs.impl.UpdateCheckerComponent - channel: release
2018-05-23 22:32:47,849 [ 14908] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:37, number of extensions:43
2018-05-23 22:32:47,852 [ 14911] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:3
2018-05-23 22:32:47,880 [ 14939] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:18, number of extensions:73
2018-05-23 22:32:47,881 [ 14940] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2018-05-23 22:32:47,946 [ 15005] INFO - ndex.PrebuiltIndexProviderBase - Using prebuilt id-index from /Users/danielmuhlbacher/Library/Caches/PhpStorm2018.1/index/.persistent/prebuilt/PHP/id-index.input
2018-05-23 22:32:47,965 [ 15024] INFO - plication.impl.ApplicationImpl - 82 application components initialized in 2027ms
2018-05-23 22:32:48,001 [ 15060] INFO - .intellij.idea.IdeaApplication - App initialization took 15500 ms
2018-05-23 22:32:48,240 [ 15299] INFO - pl$FileIndexDataInitialization - Initialization done:387
2018-05-23 22:32:48,285 [ 15344] INFO - exImpl$StubIndexInitialization - Initialization done:45
2018-05-23 22:32:48,460 [ 15519] INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@553cdd39
2018-05-23 22:32:48,556 [ 15615] INFO - cloudConfig.CloudConfigManager - === End.updateInitStatus ===
2018-05-23 22:32:48,667 [ 15726] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2018-05-23 22:32:48,947 [ 16006] INFO - j.ide.ui.OptionsTopHitProvider - 360 ms spent to cache options in application
2018-05-23 22:32:49,016 [ 16075] INFO - ellij.project.impl.ProjectImpl - 22 project components initialized in 94 ms
2018-05-23 22:32:49,020 [ 16079] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@681f333b
2018-05-23 22:32:49,245 [ 16304] INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@73bed62a
2018-05-23 22:32:49,250 [ 16309] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.actions.GotoClassPresentationUpdater@27e99f8b

I noticed that there are 12 seconds between these two entries:

2018-05-23 22:32:33,369 [ 428] INFO - .intellij.util.EnvironmentUtil - LC_CTYPE=de_AT.UTF-8
2018-05-23 22:32:45,649 [ 12708] INFO - .intellij.idea.IdeaApplication - CPU cores: 8; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@27f96604[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@5f040e8d

Does anybody has an idea how to speed up PHPStorm?

Thanks a alot!

0
Avatar
Permanently deleted user

Hello,

Where the project files are located? Is it a local disk or some kind of a network location?

How large is the project itself? Are there any complex files (huge JS/PHP/HTML mix alike)?

0
Avatar
Permanently deleted user

Hi Vladimir,

PHPStorm and project files are all located on the Mac SSD; therefore loading should be very fast. The project size itself differs; but startup is generally slow, even when no project is opened at start.

0
Avatar
Permanently deleted user

Maybe it's a JDK problem?

0

That sounds like https://youtrack.jetbrains.com/issue/JRE-781 - please perform the same steps as described there to capture a CPU snapshot & attach it there describing your problem

0

请先登录再写评论。