GithubHelp home page GithubHelp logo

Comments (3)

gmallard avatar gmallard commented on June 26, 2024

Unlikely that this is a gem bug I think. You are operating in a complex network environment. And as with all networking apps, any thing can go wrong at any time.

Any chance of you showing me your logs ?

Make sure your custom logger emits all the information it possibly can. Including original exception ans stack trace data if possible.

In the logger, try things like:

# Log miscellaneous errors
  def on_miscerr(parms, errstr)
    begin
      @log.debug "Miscellaneous Error #{info(parms)}"
      @log.debug "Miscellaneous Error String #{errstr}"
      @log.debug "Miscellaneous Error All Parms #{parms.inspect}"      
			if parms[:ssl_exception]
		               @log.debug "SSL Miscellaneous Error Parms: #{parms[:ssl_exception]}"
		               @log.debug "SSL Miscellaneous Error Message: #{parms[:ssl_exception].message}"
				btr = parms[:ssl_execption].backtrace.join("\n")
				@log.debug "Backtrace SME: #{btr}"
			end
    rescue
      @log.debug "Miscellaneous Error oops"
    end
  end

Do you have access to AMQ logs ? If so, do they show anything "interesting" ?

Looking at your connect hash: have you tried using well selected values for heartbeats ? That is a shot in the dark, but it might help.

from stomp.

gmallard avatar gmallard commented on June 26, 2024

I changed your code above just enough to get it running here. Started it.

Also started two producers. One sends to queue 1 every 30 seconds, the other to queue 2 every 20 seconds.

Connections to AMQ on localhost.

Right now, that has been running for about 20 hours with no failures.

I doubt tat I will be able to recreate this problem.

from stomp.

gmallard avatar gmallard commented on June 26, 2024

I cannot recreate the problem you describe.

I have had your code running for as long as 4 days, with no problems.

If you need help from me I am going to need to see all of the detail in logs from the logger.

Incidentally, there is an enhancement to the example logger the gem provides. It is on the DEV branch only at present.

from stomp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.