I have a GP service published on ArcGIS Server 10.2.2. This GP service is going to be used by multiple users at the same time and for intermediate data storage I use [in_memory][1] workspace.

I was not able to find on the Internet though whether the datasets I save in in_memory in one GP service session will be "visible" in another one, and thus result in lock issues when trying to overwrite an existing dataset or delete a dataset that is currently being used by another GP service session.

I am hoping for having in_memory encapsulated for each GP service run (session), but wanted to check if anyone knows for sure how it works with GP services. 

I know that I can use [arcpy.env.scratchGDB][2] for the intermediate data storage in a file geodatabase (which will be unique for each GP service run), but it is way slower and since I have to write many times during the run, this will negatively affect the service performance.

The same question available [here on GeoNet][3] with no answer.


  [1]: http://resources.arcgis.com/en/help/main/10.2/index.html#//002w0000005s000000
  [2]: http://resources.arcgis.com/en/help/main/10.1/index.html#//001w00000047000000
  [3]: https://geonet.esri.com/thread/93264