Fast restart of applications using shared memory
First Claim
1. A method, implemented at least in part by a computing device, for restarting an application using shared memory, the method comprising:
- associating shared memory with the application by an operating system;
shutting down the application, wherein shutting down the application comprises;
creating a holder process by the application, andassociating the shared memory with the holder process by the application, wherein the holder process remains associated with the shared memory after the application has shut down and prevents the shared memory from being released to the operating system; and
after the application has been shut down, restarting the application, comprising;
checking whether the shared memory is usable by the restarted application; and
when the shared memory is usable, associating the shared memory with the restarted application, by the holder process, for use by the restarted application.
2 Assignments
0 Petitions
Accused Products
Abstract
Technologies are described for restarting an application while maintaining data in memory (e.g., using shared memory). For example, shared memory can be associated with an application. The shared memory can also be associated with a holder process to maintain the shared memory from the time the application stops to the time the application starts again. When the application starts, the shared memory can be associated with the started application. In addition, restart of in-memory databases can be provided using shared memory. For example, in-memory data can be maintained when a database process or database management system stops and starts (e.g., during a restart).
-
Citations
18 Claims
-
1. A method, implemented at least in part by a computing device, for restarting an application using shared memory, the method comprising:
-
associating shared memory with the application by an operating system; shutting down the application, wherein shutting down the application comprises; creating a holder process by the application, and associating the shared memory with the holder process by the application, wherein the holder process remains associated with the shared memory after the application has shut down and prevents the shared memory from being released to the operating system; and after the application has been shut down, restarting the application, comprising; checking whether the shared memory is usable by the restarted application; and when the shared memory is usable, associating the shared memory with the restarted application, by the holder process, for use by the restarted application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer-readable storage medium storing computer-executable instructions for causing a computing device to perform a method for restarting a database application using shared memory, the method comprising:
-
allocating shared memory from an operating system to the database application; stopping the database application, wherein stopping the database application comprises; creating a holder process by the database application; associating shared memory, by the database application, with the holder process, wherein the association between the holder process and the shared memory prevents the shared memory from being released to the operating system while the database application is not running; and shutting down the database application, wherein the holder process remains associated with the shared memory after the database application has shut down and prevents the shared memory from being released to the operating system; and upon restarting the database application; associating the shared memory, being held by the holder process, with the database application by the holder process; determining whether the associated shared memory is usable by the database application; and upon determining that the associated shared memory is usable, stopping the holder process and running the database application using the associated shared memory. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A database environment comprising:
-
a computer server; and a database application; the database application configured to perform operations for restarting the database application using shared memory, the operations comprising; associating shared memory with the database application, wherein the shared memory is allocated to the database application by an operating system; shutting down the database application, wherein shutting down the database application comprises; creating a holder process by the database application, and associating the shared memory with the holder process by the database application, wherein the holder process remains associated with the shared memory after the database application has shut down and prevents the shared memory from being released to the operating system; and after the database application has been shut down, restarting the database application, comprising; checking whether the shared memory is usable by the restarted database application; and when the shared memory is usable, associating the shared memory, by the holder process, with the restarted database application for use by the restarted database application.
-
Specification