Nailgun is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead.
Questions tagged [nailgun]
21 questions
22
votes
1 answer
Scala compile server error when using nailgun
I am currently using IntelliJ Idea 13.0 Build 132.197, and I frequently run into this problem when building any Scala projects
6:08:42 PM Scala compile server: java.net.BindException: Address already in use: JVM_Bind
at…
Hanxue
- 12,243
- 18
- 88
- 130
11
votes
1 answer
Speed up clojure startup time with nailgun
Every now and then I think it would be nice to use clojure for shell scripts, but a startup time of about 900ms is way too slow. I'd then googlestartpage for "nailgun clojure", but the only results that show up are for special cases like vimclojure.…
Evgeniy Berezovsky
- 18,571
- 13
- 82
- 156
10
votes
1 answer
Rails app on JRuby 1.7 in Nailgun mode does not start
I installed JRuby 1.7.2 in RVM, created a gemset, executed bundle install. Now, I run this:
Term 1:
[lzap@lzapx my_app]$ bundle exec jruby --ng-serv
NGServer started on all interfaces, port 2113.
Term 2:
[lzap@lzapx my_app]$ JRUBY_OPTS="--1.9 --ng"…
lzap
- 16,417
- 12
- 71
- 108
5
votes
1 answer
/dev/tty opens in nailgun-server terminal
Given a sample script that opens /dev/tty:
# sample.rb
tty=File.open("/dev/tty", "w+")
tty.print "> "
tty.puts tty.gets.upcase
I can run it with normal jruby just fine:
% jruby sample.rb
> hello
HELLO
%
However, if I try to use /dev/tty with…
rampion
- 87,131
- 49
- 199
- 315
4
votes
1 answer
Improve gradle startup time with groovyserv or nailgun or what
I'm trying to improve the startup time of Gradle. The expererimental --daemon switch doesn't seem to really speed it up. So I'm thinking to use some server process independent of gradle, and make gradle connect to it. The options I found so far…
Adam Schmideg
- 10,590
- 10
- 53
- 83
3
votes
3 answers
How to start a Groovy script (or Java class) with Nailgun Server
I'm developing a Groovy shell script which is launched frequently (doing rather small tasks), therefore I need a fast JVM startup time. To achieve that I'm trying to launch it with Nailgun.
I have installed Nailgun as an Ubuntu package. Then I fixed…
Wolkenarchitekt
- 20,170
- 29
- 111
- 174
3
votes
1 answer
How run a simple Java program with the client/server Nailgun (on Debian Stretch)?
I'm try to use Nailgun on Debian GNU/Linux 9 (stretch).
"Nailgun is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead. Programs run in the server (which is implemented in Java),…
Olivier Pirson
- 737
- 1
- 5
- 24
2
votes
1 answer
How to stop/start rails/webrick when using JRuby with nailgun?
This is probably a stupid question, but not having much joy researching it myself.
Using JRuby 1.6.4 on OSX (Snow Leopard) installed via rvm.
I have enabled nailgun .
Can start rails/webrick (rails s) and things seem fine.
Now I want to stop/start…
Chris Kimpton
- 5,546
- 6
- 45
- 72
2
votes
1 answer
Why does nailgun cache command line arguments?
When running Jython programs through nailgun the jython program always runs with the
command line arguments of the first time it was run.
first I start nailgun:
arthur@a:~/nailgun$ java -jar nailgun.jar
NGServer started on all interfaces, port…
Arthur Ulfeldt
- 90,827
- 27
- 201
- 284
2
votes
2 answers
Java -> C++ communication using SWIG over JNI. Protect from C++ errors and memory leaks
We are willing to communicate to a C++ library developed by another team from Java.
The natural and most optimal approach we've seen is using JNI, but use SWIG for simplicity during the developing time.
We actually have developed the prototype and…
aabad
- 21
- 3
1
vote
0 answers
Nailgun: how to run jar files?
I installed nailgun on my OSX and the server is started:
NGServer 1.0.0-SNAPSHOT started on all addresses, port 2113.
When trying to run a simple jar file (expecting some outputs), nothing happens, the command is executed but there is no output on…
Milos Cuculovic
- 19,631
- 51
- 159
- 265
1
vote
0 answers
Clear some stuff from Nailgun cache (usage: Jython)
This is a bit technical, and follows on from Using Nailgun in Eclipse for Java and Jython.
I have found out how to get Nailgun to work OK in on a Windows OS in Eclipse, using Jython. And using the unittest module.
What is baffling is that…
mike rodent
- 14,126
- 11
- 103
- 157
1
vote
2 answers
Using Nailgun in Eclipse for Java and Jython
I have just set up Nailgun (https://github.com/martylamb/nailgun, http://martiansoftware.com/nailgun/), which is a clever piece of kit which makes the JVM hang around in memory making Java and Jython (potentially) launch more quickly.
This is great…
mike rodent
- 14,126
- 11
- 103
- 157
1
vote
1 answer
Running a java program via nailgun
Can someone please explain how do I start a program called main.java using Nailgun. It's been a complete nightmare for me and I cannot find any sort of tutorial on the web which explains it clearly.
Do I need to include anything extra in my program…
user4215685
1
vote
0 answers
Can't get VimClojure to talk to NGServer
I'm trying to setup Vim as a Clojure programming environment, using these instructions:
http://naleid.com/blog/2011/12/19/getting-a-clojure-repl-in-vim-with-vimclojure-nailgun-and-leiningen/
I'm able to start ng-server from the root of a Leiningen…
Bob
- 3,283
- 3
- 20
- 14