dragos / dragos-vscode-scala

Other
253 stars 39 forks source link

High memory footprint #55

Closed mgobec closed 7 years ago

mgobec commented 7 years ago

Hi,

I setup the latest release of this VS Code plugin through extensions tab (awesome work) when VS Code starts it spawns two java processes one consuming ~4.5GB and another ~500mb or memory.

VS Code version: Version 1.16.0 (1.16.0) SBT version in project: sbt.version=0.13.15 Scala version in project: scalaVersion := "2.11.8" Ensime plugin version: addSbtPlugin("org.ensime" % "sbt-ensime" % "1.12.0")

Thanks, Matija

dragos commented 7 years ago

Indeed, it looks like the default Coursier JVM process runs with a 4G heap, and currently there is no way to change that. See https://github.com/coursier/coursier/issues/357

mgobec commented 7 years ago

I'll keep an eye on that issue then and close this one. Btw, the plugin works great. Thank Iulian.

alexarchambault commented 7 years ago

@dragos The amount of memory can be changed from here, as we're launching coursier via a custom java command. E.g. -Xmx etc. options could be added around here.

mgobec commented 7 years ago

@alexarchambault Good one. Lets keep it active then 👍

dragos commented 7 years ago

Fixed in the latest release.