Home > General, JRuby, Java, Programming, Ruby > Do you wanna help us with pure-Java Nokogiri?

Do you wanna help us with pure-Java Nokogiri?

December 1st, 2009 Serabe Leave a comment Go to comments

First things first, if you wanna help, you’ll need to clone the git repo. Just:

git clone git://github.com/tenderlove/nokogiri.git
cd nokogiri
git checkout --track -b java origin/java

Install the dependencies. Just:

rake install:deps

Because it uses some native libraries, you’ll need to do that with MRI. Finally, you’ll need to generate some files, just run jruby -S rake java:spec. For having a hprof file, you’ll need to run this script with the following command:

jr -J-Xmx32m -J-XX:+HeapDumpOnOutOfMemoryError nokogiri_doc_frag.rb

-J-Xmx32m limits the heap space to 32 Mb, and the other options makes the JVM to write a hprof file when a OutOfMemoryError is thrown. After that, you can inspect that file with the profiler you can find in NetBeans.

In next post, I’ll comment where I think the problem is.

  • Share/Bookmark

Related posts:

  1. Final Status Update (or How to get Nokogiri in JRuby without FFI)
  2. Status Update: RMagick4J, Nokogiri, ruby2java and a possible MagickWand4J
  3. Redirección de salida en Java
  4. Comparativa I: Servidor en Java
  5. Comparativa I: Cliente en Java.
Categories: General, JRuby, Java, Programming, Ruby Tags: , ,
Improve the web with Nofollow Reciprocity.