Thanks Jeremy, I just wanted to check if we can change from cruby to jruby w/o any code changes? Thanks Shashank
On Thu, Jan 4, 2018 at 1:32 PM, Jeremy Evans <[email protected]> wrote: > On Wednesday, January 3, 2018 at 8:29:55 PM UTC-8, shashank Jain wrote: >> >> Right. We understand that removing sync will make code non thread safe, >> but just wanted to check if it improves anything. >> So even after removing all sync blocks in hold method as well , the >> timings are not improving. >> Also we observe that even if max connection pool size is set to 400 the >> max connections it creates to DB is almost half the number. Struggling to >> figure out where really the issue is now. >> Thanks >> Shashank >> > > Did you try using JRuby, as I've already mentioned multiple times earlier > in this thread? If performance is significantly better with JRuby, you can > probably assume this is a CRuby issue. CRuby in general does not handle > large numbers of threads well, especially if the workload is not mostly IO > bound. Threads in general are not executed in parallel in CRuby due to the > GVL, and with 300 threads you can probably see how that can present > issues. If you aren't willing to try JRuby, I won't be willing to provide > further assistance troubleshooting this issue. > > Thanks, > Jeremy > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sequel-talk" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/sequel-talk/5NNUNaHqIMY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sequel-talk. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
