s-u / Rserve

Fast, flexible and powerful server providing access to R from many languages and systems
http://RForge.net/Rserve
Other
282 stars 65 forks source link

[question] shared resources between parent and children processes #105

Open dselivanov opened 6 years ago

dselivanov commented 6 years ago

Hi Simon. Is there any way in 1.8.* series on how to manage shared resources between processes? My case is that I need somehow maintain connection pool to a database.

I'm pretty sure this is quite common case and some Rserve users already investigated it. Any suggestions?

dselivanov commented 6 years ago

So far I have in mind only workaround when Rserve is compiled with -DCOOPERATIVE and used in cooperative mode. BTW interesting option would be to add ability choose whether to start in cooperative or fork mode in runtime. Have no idea on how hard it will be to implement.

vikram-rawat commented 4 years ago

I am using a db pool with restRserve and I am facing a pool leak. Is there anything currently that I should do to stop it... I am going through all the issues right now finding something that would help. If you have found any advice please do mention.