Spencer Smith
11/20/2025, 12:36 AM{self-hosted-medplum}/fhir/R4/ServiceRequest?
_count=10
_offset=0
_sort=authored
identifier=UP25-41
_include=ServiceRequest:subject
_include=ServiceRequest:specimen
_include=ServiceRequest:performer
_revinclude=DiagnosticReport:based-on
_revinclude:iterate=Provenance:target
_revinclude=Task:based-on
_revinclude=QuestionnaireResponse:based-on
_total=accurate
_elements=id,identifier,masterIdentifier,code,basedOn,status,authoredOn,name,birthDate,type,receivedTime,container,parent,note,request,referenceSpencer Smith
11/20/2025, 4:05 AMmax-old-space flag and setting it a higher value, but still see the same error.reshma
11/20/2025, 4:10 AMreshma
11/20/2025, 4:12 AMSpencer Smith
11/20/2025, 5:04 AMSpencer Smith
11/20/2025, 3:48 PMrahul1
11/20/2025, 4:51 PMSpencer Smith
11/20/2025, 4:54 PMSpencer Smith
11/20/2025, 4:56 PMIan Plunkett
11/20/2025, 4:58 PMSpencer Smith
11/20/2025, 5:02 PM2025-11-20 15:33:11 UTC:10.0.137.112(56897):clusteradmin@medplum:[16424]:WARNING: there is no transaction in progress
2025-11-20 15:33:36 UTC:10.0.137.112(15189):clusteradmin@medplum:[16308]:WARNING: there is no transaction in progress
2025-11-20 15:34:27 UTC:10.0.179.29(42215):clusteradmin@medplum:[16355]:WARNING: there is no transaction in progress
2025-11-20 15:34:30 UTC:10.0.137.112(62881):clusteradmin@medplum:[2954]:WARNING: there is no transaction in progress
2025-11-20 15:34:36 UTC:10.0.137.112(49187):clusteradmin@medplum:[16164]:WARNING: there is no transaction in progress
2025-11-20 15:34:51 UTC:10.0.179.29(45975):clusteradmin@medplum:[3187]:WARNING: there is no transaction in progress
2025-11-20 15:34:53 UTC:10.0.137.112(15189):clusteradmin@medplum:[16308]:WARNING: there is no transaction in progress
2025-11-20 15:35:01 UTC:10.0.179.29(25743):clusteradmin@medplum:[16255]:WARNING: there is no transaction in progress
2025-11-20 15:36:40 UTC:10.0.137.112(19851):clusteradmin@medplum:[17736]:WARNING: there is no transaction in progress
2025-11-20 15:47:05 UTC:10.0.179.29(18561):clusteradmin@medplum:[16400]:LOG: unexpected EOF on client connection with an open transaction
2025-11-20 15:47:25 UTC:10.0.137.112(12767):clusteradmin@medplum:[16367]:LOG: unexpected EOF on client connection with an open transaction
2025-11-20 15:47:25 UTC:10.0.179.29(18153):clusteradmin@medplum:[16404]:LOG: unexpected EOF on client connection with an open transaction
2025-11-20 15:47:25 UTC:10.0.137.112(60903):clusteradmin@medplum:[17411]:LOG: unexpected EOF on client connection with an open transaction
2025-11-20 15:48:05 UTC:10.0.179.29(47853):clusteradmin@medplum:[16211]:LOG: unexpected EOF on client connection with an open transactionIan Plunkett
11/20/2025, 5:02 PMSpencer Smith
11/20/2025, 5:03 PMSpencer Smith
11/20/2025, 5:06 PMSELECT "ServiceRequest"."id", "ServiceRequest"."lastUpdated", "ServiceRequest"."content" FROM "ServiceRequest" WHERE ("ServiceRequest"."deleted" = $1 AND "ServiceRequest"."projectId" IN ($2) AND "ServiceRequest"."__identifier" @> ARRAY[$3]::UUID[]) ORDER BY "ServiceRequest"."authored" LIMIT 11
$1 = 'false', $2 = 'ff600e8b-234a-49ab-86da-ed0f206c6b42', $3 = '7e6621fe-d182-5aa3-b6d8-71c45980e322'
Limit (cost=25.33..25.33 rows=1 width=38) (actual time=0.029..0.030 rows=1 loops=1)
Buffers: shared hit=7
-> Sort (cost=25.33..25.33 rows=1 width=38) (actual time=0.028..0.029 rows=1 loops=1)
Sort Key: authored
Sort Method: quicksort Memory: 25kB
Buffers: shared hit=7
-> Bitmap Heap Scan on "ServiceRequest" (cost=21.30..25.32 rows=1 width=38) (actual time=0.023..0.024 rows=1 loops=1)
Recheck Cond: (__identifier @> '{7e6621fe-d182-5aa3-b6d8-71c45980e322}'::uuid[])
Filter: ((NOT deleted) AND ("projectId" = 'ff600e8b-234a-49ab-86da-ed0f206c6b42'::uuid))
Heap Blocks: exact=1
Buffers: shared hit=7
-> Bitmap Index Scan on "ServiceRequest___idnt_idx" (cost=0.00..21.30 rows=1 width=0) (actual time=0.018..0.018 rows=1 loops=1)
Index Cond: (__identifier @> '{7e6621fe-d182-5aa3-b6d8-71c45980e322}'::uuid[])
Buffers: shared hit=6
Settings: maintenance_io_concurrency = '1', effective_cache_size = '10408168kB'
Planning:
Buffers: shared hit=602
Planning Time: 0.987 ms
Execution Time: 0.057 msSpencer Smith
11/20/2025, 5:07 PMIan Plunkett
11/20/2025, 7:34 PMSpencer Smith
11/20/2025, 7:46 PMcustom frontend -> custom backend with Medplum SDK->`Medplum`. However for this test I took one of the queries that was causing the crash and have been running it directly against the Medplum API with curl in both envs.Ian Plunkett
11/20/2025, 8:10 PMSpencer Smith
11/20/2025, 8:31 PMrahul1
11/20/2025, 11:15 PMSpencer Smith
11/21/2025, 3:42 PMrahul1
11/24/2025, 11:56 PMSpencer Smith
11/26/2025, 3:43 PM_include and _revinclude with :iterate) and that's when we noticed our self-hosted MP servers locking up. However our dev env (hosted by you guys) wasn't having any issues.
โข Why move to hosted?
This was really just the classic 'build vs buy' decision. It came down to what was the best use of my time while we're trying to get our product launched. Like I mentioned above, the engineer side of my brain wants to sit here and figure out what I'm doing wrong and solve the problem, but ultimately that's not what's best for our customers right now. We're drastically better off letting the experts (the MP team) handle hosting while we focus on our app launch.
It also means that we get to pay you guys more money. I say 'get to' because Medplum is an amazing tool that we want to see succeed. ๐
Eventually I'd like to see us switch to self-hosted with a support agreement since there are some things that are self-hosted only for obvious reasons (custom search params, multiple projects, etc.). For now though, hosted is the way to go!rahul1
11/26/2025, 8:07 PMrahul1
11/26/2025, 8:07 PMSpencer Smith
11/26/2025, 9:21 PM