Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Scala 2.12.1 on Mac OS X #98

Open
lbialy opened this issue Dec 12, 2016 · 1 comment
Open

Problem with Scala 2.12.1 on Mac OS X #98

lbialy opened this issue Dec 12, 2016 · 1 comment

Comments

@lbialy
Copy link

lbialy commented Dec 12, 2016

Hey guys, I was trying to use drip with Scala and fish shell on Mac OS X and it caused me some pain today. It seems it keeps creating new processes and never kills those it used before. If I ps aux | grep -c drip now it counts 1080 hits (590 for drip_daemon so this is probably the true process count). I am using Scala both as REPL and in Intellij Idea (latest). I've added those lines to my fish.init files as docs suggested:

set -gx JAVA_HOME (/usr/libexec/java_home)
set -gx PATH $JAVA_HOME/bin $PATH
set -gx JAVACMD drip

and everything was nice and speedy, but I started to run out of processes. I upped my ulimit and launchctl's maxproc's limits, but I kept getting fork errors and started looking at my ps aux output. Here's the command that keeps repeating 590 times now:

lukaszbialy       1005   0.0  0.0  2450176    184   ??  S    12:38PM   0:00.00 /usr/local/bin/../Cellar/drip/0.2.4/bin/../libexec/bin/drip_daemon /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java -Xmx256M -Xms32M -Xbootclasspath/a:/usr/local/Cellar/scala/2.12.1/libexec/lib/jline-2.14.1.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-compiler.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-library.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-parser-combinators_2.12-1.0.4.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-reflect.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-swing_2.12-2.0.0-M2.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-xml_2.12-1.0.6.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scalap-2.12.1.jar -Dscala.home=/usr/local/Cellar/scala/2.12.1/libexec -Dscala.usejavacp=true -Denv.emacs= -Djava.awt.headless=true -classpath /usr/local/bin/../Cellar/drip/0.2.4/bin/../libexec/bin/../drip.jar:"" org.flatland.drip.Main scala.tools.nsc.MainGenericRunner /Users/lukaszbialy/.drip/0.2.4/<INSERT RANDOM HASH HERE>

Any ideas, am I doing something ridiculously wrong?

@lbialy
Copy link
Author

lbialy commented Dec 12, 2016

Apparently I was wrong, there really were 1080 processes of drip - second one was:

lukaszbialy        886   0.0  0.0  2466152   1036   ??  S    12:38PM   0:00.01 bash /usr/local/bin/drip -Xmx256M -Xms32M -Xbootclasspath/a:/usr/local/Cellar/scala/2.12.1/libexec/lib/jline-2.14.1.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-compiler.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-library.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-parser-combinators_2.12-1.0.4.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-reflect.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-swing_2.12-2.0.0-M2.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scala-xml_2.12-1.0.6.jar:/usr/local/Cellar/scala/2.12.1/libexec/lib/scalap-2.12.1.jar -classpath "" -Dscala.home=/usr/local/Cellar/scala/2.12.1/libexec -Dscala.usejavacp=true -Denv.emacs= scala.tools.nsc.MainGenericRunner scala.tools.nsc.CompileServer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant