Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524
First things first, if you wanna help, you’ll need to clone the git repo. Just:
git clone git://github.com/tenderlove/nokogiri.git
git checkout --track -b java origin/java
Install the dependencies. Just:
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.