Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
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

Closed

Description

@zloster

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]

Here is a link to an actual TravisCI run.

I'm guessing that ./configure --prefix='pwd'; make; make install should be added to the .docker files. All of them seems to be mentioned in PR #3604.

Activity

  1. michaelhixson commented on Oct 3, 2018

    @michaelhixson
    Contributor

    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.

  2. zloster commented on Oct 3, 2018

    @zloster
    ContributorAuthor

    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)?

  3. michaelhixson commented on Oct 3, 2018

    @michaelhixson
    Contributor

    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.
  4. zloster commented on Oct 3, 2018

    @zloster
    ContributorAuthor

    Thanks a lot.

  5. michaelhixson commented on Oct 3, 2018

    @michaelhixson
    Contributor

    Are you planning to do that experiment @zloster? If not, mind if I reopen this issue to track our intent to do it?

  6. zloster commented on Oct 4, 2018

    @zloster
    ContributorAuthor

    @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.

  7. reopened this on Oct 4, 2018
  8. changed the title [-]Problem/warning with Resin installation[/-] [+]Gather data for the Resin performance - with and without its JNI library[/+] on Oct 4, 2018
  9. zloster commented on Nov 5, 2019

    @zloster
    ContributorAuthor

    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.

  10. michaelhixson commented on Nov 5, 2019

    @michaelhixson
    Contributor

    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.

  11. zloster commented on Nov 9, 2019

    @zloster
    ContributorAuthor

    Given the data here I object the part with The fact that it's not a performance increase across the board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions