[Archivesspace_Users_Group] Java Process High CPU

Arbelo, Ralph rarbelo at library.rochester.edu
Mon Jul 23 16:03:19 EDT 2018


We recently migrated ArchivesSpace (2.2.2) from SUSE Linux (11 SP4) to Ubuntu 16.04 for our development server. It has a high CPU usage for Java all the time, averaging (according to top) over 100% (across two CPUs), which triggers alerts in VMware. Here’s some of the relevant  specs:

  *   Ubuntu 16.04 64 bit running on VMware
  *   2 x CPU
  *   4 GB of RAM
  *   80 GB disk

It’s running Java 8:
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

It seems to be constantly indexing, so I temporarily disabled indexing in config.rb. It didn’t seem to make much of a difference – Java was still using over 100% CPU. I used the same config.rb file as the old SUSE dev server. These are the settings we have enabled in config.rb:
AppConfig[:db_url] = "jdbc:mysql://localhost:3306/archivesspace?user=aspace&password=<redacted> &useUnicode=true&characterEncoding=UTF-8&serverTimezone=EST"
AppConfig[:db_max_connections] = 10
AppConfig[:backend_url] = "http://localhost:8089"
AppConfig[:frontend_url] = "http://localhost:8080"
AppConfig[:public_url] = "http://localhost:8081"
AppConfig[:backend_log_level] = "warn"
AppConfig[:plugins] = ['local',  'lcnaf']
AppConfig[:mysql_binlog] = false
AppConfig[:frontend_proxy_url] = proc { AppConfig[:frontend_url] }
AppConfig[:public_proxy_url] = proc { AppConfig[:public_url] }
AppConfig[:enable_backend] = true
AppConfig[:enable_frontend] = true
AppConfig[:enable_public] = true
AppConfig[:enable_solr] = true
AppConfig[:enable_indexer] = true
AppConfig[:enable_docs] = true
AppConfig[:report_page_layout] = "letter landscape"
AppConfig[:report_pdf_font_family] = "\"DejaVu Sans\", sans-serif"

Finally, here are our Java settings in archivesspace.sh:

If there’s some settings/troubleshooting I should try, please let me know. I can also provide some log output. Note there are no errors in the archviesspace.out log. I do see this warning:
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.

Thank you!

Ralph Arbelo - Library IT Services
River Campus Libraries - University of Rochester
121 Rush Rhees Library, Rochester, NY 14627
o: 585.275.3449 - m: 585.721.0129 - f: 585.275.1032

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20180723/f1b77aa9/attachment.html>

More information about the Archivesspace_Users_Group mailing list