HTML to PDF / DOCX / RTF Java converter library Forums PD4ML v3 Archived Forums (Read Only) Troubleshooting java process spikes up the server load and app slows/crashes

Viewing 1 post (of 1 total)
  • Author
  • #26870

    We are using pdf4ml for generating pdf files in our rails application. The way we are calling it is as following:

    # build & execute the shell command.

    cmd = “java -Xms32m -Xmx128m -jar #{File.dirname(__FILE__)}/#{JAR} file:#{infile} #{outfile}”

    puts cmd


    This is called through shell command with all relevant paths included in command. This was running fine since we shifted our app to new our server which is a centos and having java version 7.40. the problem that we are facing on our new server is that when a instance of pdf creation command is used, the java process spikes up the server load and the entire application is down. We can not even open a page in that case. We had reviewed the java pids and found generating following error:

    futex(0x7f864824be28, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f864824be54, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, {1379527706, 891077000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)

    and when the java process is not there the server runs perfectly. We do not have memory issues on our server, every time approximately 2 GB memory is free. We are unable to find a possible reason for this issue so far. The application is running on following software:

    1. Apache/2.2.24

    2. Mysql : Server version: 5.5.30-cll

    3. Rails 2.3.17

    4. ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux]

    5. thin 1.4.1 codename Chromeo


Viewing 1 post (of 1 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.