You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Gather data for the Resin performance - with and without its JNI library #4083
I'm seeing the following log from all projects that are using Resin when the server is starting:
gemini-postgres: [10:22:27.020] Unable to find native library 'resin_os' for com.caucho.loader.ClassEntry. Resin expects to find this library in:
gemini-postgres: (Unix) /resin/libexec64/libresin_os.so
gemini-postgres: On Unix, run ./configure --prefix=`pwd`; make; make install.
gemini-postgres: The JVM exception was: java.lang.UnsatisfiedLinkError: no resin_os in java.library.path: [/resin/libexec64, /usr/java/packages/lib, /usr/lib/x86_64-linux-gnu/jni, /lib/x86_64-linux-gnu, /usr/lib/x86_64-linux-gnu, /usr/lib/jni, /lib, /usr/lib]
I'm guessing that ./configure --prefix='pwd'; make; make install should be added to the .docker files.
We removed this on purpose in #3434 because it was a frequent point of failure and maintenance time sink.
If the only downside is that we see that warning in the logs, I'd prefer to leave it be. I'm ok with changing it back if it fixes other problems though.
Resin documentation recommends the JNI code for maximum performance. I'm curious is there a difference and how big it is.
Any chance to get the numbers for some project with and without the JNI code (Gemini for example)?
Any chance to get the numbers for some project with and without the JNI code (Gemini for example)?
Sounds reasonable. We generally don't do one-off manual tests in the Citrine environment for stuff like this, but for anyone that is interested in pursuing this, you could either:
Create a new variant of Gemini (or any other framework that uses Resin) that is a copy of an existing variant except with the additional Resin install steps in the dockerfile. At some later point after perf data has been collected in Citrine, use that to inform a decision about whether to change other frameworks.
Simply try it out locally and tell us what you find. If you see a consistent performance benefit from adding those install steps, that's good enough for me.
changed the title [-]Problem/warning with Resin installation[/-][+]Gather data for the Resin performance - with and without its JNI library[/+]on Oct 4, 2018
The latest results on Citrine are confirming my local results: plaintext has a lower throughput (on higher concurrencies) but json is performing better. The percent difference is not the same but this is expected. Compare servlet vs servlet-lib-native.
The fact that it's not a performance increase across the board and the bloat it adds to the Dockerfile is unfortunate, but if that's what Resin recommends in their documentation, then that seems like a reasonable thing to do.
Also, the circumstances have changed since I initially removed the configure and make steps. Back then we were trying to share one Resin base Dockerfile across all projects. The Resin installation steps were essentially part of our toolset. Now every framework is its own Docker island, so I'm content to leave the choice up to contributors. We would accept a PR that makes this change in any Resin-using frameworks.
Activity
michaelhixson commentedon Oct 3, 2018
We removed this on purpose in #3434 because it was a frequent point of failure and maintenance time sink.
If the only downside is that we see that warning in the logs, I'd prefer to leave it be. I'm ok with changing it back if it fixes other problems though.
zloster commentedon Oct 3, 2018
Resin documentation recommends the JNI code for maximum performance. I'm curious is there a difference and how big it is.
Any chance to get the numbers for some project with and without the JNI code (Gemini for example)?
michaelhixson commentedon Oct 3, 2018
Sounds reasonable. We generally don't do one-off manual tests in the Citrine environment for stuff like this, but for anyone that is interested in pursuing this, you could either:
zloster commentedon Oct 3, 2018
Thanks a lot.
michaelhixson commentedon Oct 3, 2018
Are you planning to do that experiment @zloster? If not, mind if I reopen this issue to track our intent to do it?
zloster commentedon Oct 4, 2018
@michaelhixson I'll not be able to do it in the coming couple of weeks.
Edit: I've changed the phrasing of the issue description. It should be more precise now.
[-]Problem/warning with Resin installation[/-][+]Gather data for the Resin performance - with and without its JNI library[/+]zloster commentedon Nov 5, 2019
The latest results on Citrine are confirming my local results:
plaintexthas a lower throughput (on higher concurrencies) butjsonis performing better. The percent difference is not the same but this is expected. Compareservletvsservlet-lib-native.michaelhixson commentedon Nov 5, 2019
The fact that it's not a performance increase across the board and the bloat it adds to the Dockerfile is unfortunate, but if that's what Resin recommends in their documentation, then that seems like a reasonable thing to do.
Also, the circumstances have changed since I initially removed the
configureandmakesteps. Back then we were trying to share one Resin base Dockerfile across all projects. The Resin installation steps were essentially part of our toolset. Now every framework is its own Docker island, so I'm content to leave the choice up to contributors. We would accept a PR that makes this change in any Resin-using frameworks.zloster commentedon Nov 9, 2019
Given the data here I object the part with
The fact that it's not a performance increase across the board.