15 Replies Last post: Sep 7, 2012 6:50 PM by tim pigden  
tim pigden Newbie 58 posts since
Jun 2, 2009
Currently Being Moderated

Sep 3, 2012 7:59 PM

5.948 it's getting really sluggish

Hi

I don't know if this is because my project has a lot of included libraries or because my code has a fair few implicits, but intellij is seeming very slow these days. For example pasting a few lines into a source file will send the system into a whirl of cpu activity and lock me out for 10+ seconds - making cut and paste really frustrating.

 

This is on a notebook running i7-2630QM with 8gb ram running intellij with these vm options

 

-Xms128m

-Xmx1024m

-XX:MaxPermSize=250m

-XX:ReservedCodeCacheSize=64m

-ea

 

  • External Libraries
  • < 1.7 >
  • cc.spray_spray-base_1.0-M2
  • cc.spray_spray-can_1.0-M2
  • cc.spray_spray-client_1.0-M2
  • cc.spray_spray-io_1.0-M2
  • cc.spray_spray-server_1.0-M2
  • cc.spray_spray-util_1.0-M2
  • ch.qos.logback_logback-classic_1.0.0
  • ch.qos.logback_logback-core_1.0.0
  • com.google.guava_guava_r09
  • com.googlecode.classgenerator_classgenerator_0.6.4
  • com.googlecode.concurrentlinkedhashmap_concurrentlinkedhashmap-lru_1.2
  • com.googlecode.mapperdao_mapperdao_1.0.0.rc13
  • com.thoughtworks.paranamer_paranamer_2.3
  • com.typesafe.akka_akka-actor_2.0.3
  • com.typesafe.akka_akka-slf4j_2.0.3
  • com.typesafe_config_0.3.1
  • commons-dbcp_commons-dbcp_1.4
  • commons-logging_commons-logging_1.1.1
  • commons-pool_commons-pool_1.5.4
  • joda-time_joda-time_1.6.2
  • org.clapper_grizzled-slf4j_2.9.2_0.6.9
  • org.javassist_javassist_3.16.1-GA
  • org.jvnet_mimepull_1.6
  • org.objenesis_objenesis_1.2
  • org.parboiled_parboiled-core_1.0.2
  • org.parboiled_parboiled-scala_1.0.2
  • org.scala-lang_scala-library_2.9.2
  • org.scala-tools.time_time_2.9.1_0.5
  • org.scalastuff_scalabeans_0.2
  • org.scalaz_scalaz-core_2.9.2_6.0.4
  • org.slf4j_slf4j-api_1.6.4
  • org.specs2_specs2-scalaz-core_2.9.2_6.0.1_test
  • org.specs2_specs2_2.9.2_1.9_test
  • org.springframework_spring-asm_3.1.2.RELEASE
  • org.springframework_spring-beans_3.1.2.RELEASE
  • org.springframework_spring-core_3.1.2.RELEASE
  • org.springframework_spring-jdbc_3.1.2.RELEASE
  • org.springframework_spring-tx_3.1.2.RELEASE
  • postgresql_postgresql_9.1-901.jdbc4
  • sbt-and-plugins
  • scala-2.9.2

 

I am not using type-aware highlighting.

 

I am currently registering about 1 second of cpu time per second of working  (quite a lot goes in parallel) - but I've had a number of phone calls in that time so the actual tally is worse - a single keystroke just consumed 6s and typing

<hello>world</hello>

knocked up about 30s of cpu time - most of it after it had managed to autotype the </hello> bit.

 

My project is less than 5000 loc - although the libraries obviously consume a fair bit.

 

I have similar behaviour on another machine (but it's the same code, synced)

 

The project was built with sbt and gen-idea for the intellij stuff.

 

Any suggestions as to what might make it go faster? I've been experiencing these problems for a couple of weeks - so I don't know if it's related to the latest build or to bringing in all the spray and akka libraries - they both happened around the same time.

Alexander Podkhalyuzin JetBrains 1,161 posts since
Jun 7, 2008
Currently Being Moderated
Sep 3, 2012 8:22 PM in response to: tim pigden
Re: 5.948 it's getting really sluggish

If you see pauses in typing please try to capture CPU snapshot (http://devnet.jetbrains.net/docs/DOC-192).

However usual workaround is the following two things (it's currently known issues):

1. Close Structure View during typing (open only if it's neccessary using Ctrl+F12)

2. Remove from Project View "show members" setting.

 

Best regards,

Alexander Podkhalyuzin.

Alexander Podkhalyuzin JetBrains 1,161 posts since
Jun 7, 2008
Currently Being Moderated
Sep 4, 2012 1:16 PM in response to: tim pigden
Re: 5.948 it's getting really sluggish

I just fixed (in Leda, to Nika it will be backported later this week) another possible performance and not only performance problem - StackOverflowError.

Please check your idea log file: http://devnet.jetbrains.net/docs/DOC-181

It contains all recorded exceptions.

 

Best regards,

Alexander Podkhalyuzin.

Alexander Podkhalyuzin JetBrains 1,161 posts since
Jun 7, 2008
Currently Being Moderated
Sep 7, 2012 9:07 AM in response to: tim pigden
Re: 5.948 it's getting really sluggish

So I still need CPU snapshot to check what causes this problem.

 

Best regards,

Alexander Podkhalyuzin.

Alexander Podkhalyuzin JetBrains 1,161 posts since
Jun 7, 2008
Currently Being Moderated
Sep 7, 2012 4:05 PM in response to: tim pigden
Re: 5.948 it's getting really sluggish

The best way to take snapshot only on freezing typing. Moreover it's better to do sampling (more information during collecting it). However it's ok to make snapshot on a bigger time (just in sampling case it will be very big snapshot), I can see freezes, when awt thread is doing something.

 

Best regards,

Alexander Podkhalyuzin.

Alexander Podkhalyuzin JetBrains 1,161 posts since
Jun 7, 2008
Currently Being Moderated
Sep 7, 2012 4:01 PM in response to: tim pigden
Re: 5.948 it's getting really sluggish

It seems files, where you are typing are big and contains a lot of xml? We have such problem, because we haven't incremental lexer for xml parts (and lexer is working in awt thread, this is most probably causing your freezes).

One addition is about "Project View", try to hide it too, and check performance again. Is it faster?

 

Best regards,

Alexander Podkhalyuzin.

Alexander Podkhalyuzin JetBrains 1,161 posts since
Jun 7, 2008
Currently Being Moderated
Sep 7, 2012 4:33 PM in response to: tim pigden
Re: 5.948 it's getting really sluggish

It would be great to work with actual examples causing problems. Then I'll fix them much faster.
I've not got your e-mail with dump, so probably you have wrong e-mail. Actually it's Alexander.Podkhalyuzin@jetbrains.com. Let's move conversation to the e-mail thread.

 

Best regards,

Alexander Podkhalyuzin.

Alexander Podkhalyuzin JetBrains 1,161 posts since
Jun 7, 2008
Currently Being Moderated
Sep 7, 2012 6:38 PM in response to: tim pigden
Re: 5.948 it's getting really sluggish

It's ok now, thank you. Can't promise fixing this today (it's evening now in Russia), but I'll take a look on Monday.

 

Best regards,

Alexander Podkhalyuzin.

More Like This

  • Retrieving data ...