JVM可以提供快照持久性吗? [英] Can the JVM provide snapshot persistence?

查看:100
本文介绍了JVM可以提供快照持久性吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以转储正在运行的JVM的映像,然后通过将映像加载到JVM中来恢复以前的状态?我相当肯定答案是否定的,但是会喜欢错误。

Is it possible to dump an image of a running JVM and later restore the previous state by loading the image into the JVM? I'm fairly certain the answer is negative, but would love to be wrong.

随着JVM可用的所有动态语言增加了交互性,能够保存编码会话有助于节省手动将VM恢复到上一个​​会话的时间。

With all the dynamic languages available for the JVM comes an increase in interactivity, being able to save a coding session would help save time manually restoring the VM to a previous session.

推荐答案

有一个 JSR 323为此提出了一段时间,但它是拒绝了。您可以在这些文章中找到有关此背后的研究及其需要的一些链接。它主要被拒绝作为一个太不成熟的想法。

There was a JSR 323 proposed for this a while back but it was rejected. You can find some links in those articles about the research behind this and what it would take. It was mostly rejected as an idea that was too immature.

我听说至少有一家创业公司(不幸的是不记得这个名字)正在进行虚拟化管理程序(可能是Xen)上的技术非常接近能够移动JVM,包括文件系统引用和套接字端点等。因为他们处于虚拟机管理程序级别,所以他们可以访问所有这些内容。通过挂钩和JVM,他们拥有大部分内容。我认为他们可能会陷入困境。

I have heard of at least one startup (unfortunately don't recall the name) that was working on a virtualization technology over a hypervisor (probably Xen) that was getting pretty close to being able to move JVMs, including even things like file system refs and socket endpoints. Because they were at the hypervisor level, they had access to all of that stuff. By hooking that and the JVM, they had most of the pieces. I think they might have gone under though.

你今天最接近的是 Terracotta ,它允许您集群JVM堆的一部分,将其存储在服务器阵列中,这可以是持久的。在JVM启动时,您连接到群集并可以继续使用堆的任何部分指定为群集。实际对象根据需要出现故障。

The closest thing you can get today is Terracotta, which allows you to cluster a portion of your JVM heap, storing it in a server array, which can be made persistent. On JVM startup, you connect to the cluster and can continue using whatever portions of your heap are specified as clustered. The actual objects are faulted in on an as-needed basis.

这篇关于JVM可以提供快照持久性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆