Skip to content

Commit 633ede4

Browse files
committed
Java ARGS in Rakefile
1 parent 7dbd22c commit 633ede4

File tree

1 file changed

+2
-1
lines changed
  • processing_app/demos/performance

1 file changed

+2
-1
lines changed

processing_app/demos/performance/Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# adjust path to jruby, and or opts as required
33

44
SAMPLES_DIR="./"
5+
ARGS = '-J-XX:InlineSmallCode=500 -J-Xms256m -J-Xmx2g -J-XX:NewSize=64m -J-XX:MaxNewSize=64m'
56

67
desc 'run demo'
78
task :default => [:demo]
@@ -22,7 +23,7 @@ end
2223

2324
def run_sample(sample_name)
2425
puts "Running #{sample_name}...quit to run next sample"
25-
open("|jruby #{sample_name}", "r") do |io|
26+
open("|jruby #{ARGS} #{sample_name}", "r") do |io|
2627
while l = io.gets
2728
puts(l.chop)
2829
end

0 commit comments

Comments
 (0)