从 Sun JVM 过渡到 JRockit 时需要注意的事项?

发布于 2024-08-13 17:07:38 字数 105 浏览 6 评论 0原文

我们正在考虑将大型产品从依赖 Sun 的 JVM 过渡到 JRockit。 我还没有天真地相信这将是一个平稳的过渡(尽管我很愿意错)。

回归测试应该注意哪些问题或重点关注哪些问题?

We are thinking of transitioning a large product from relying on Sun's JVM to JRockit.
I'm not naive enough to believe that this is going to be a smooth transition (though I'd love to be wrong).

What issues should we watch out for or focus our regression testing on?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你如我软肋 2024-08-20 17:07:38

嗯,当然有单元测试,对吧? :-)

我使用 JRockit 只是为了“好玩”,从来没有遇到过问题。据我所知,它被用在许多各种各样的应用程序中,所以它应该可以工作。看来也通过了JCK(Sun的兼容性测试),应该是顺利的。

我认为要打破的领域是:

  • 垃圾收集器
  • 本机代码(JNI)
  • 文件系统处理,线程等...(除非他们使用Sun库代码)

文件系统,线程等...都是与底层操作系统集成的虚拟机部分。如果他们使用 Sun 代码,那么出现问题的可能性就会减少。

我敢打赌,过渡确实会顺利进行。

Well, of course you have unit tests right? :-)

I have used JRockit somewhat just for "fun" and have never had issues. From what I can see it is used in a number of apps of a wide variety so it should probably just work. It seems that it has also passed the JCK (the compatibility tests from Sun), so it should be smooth.

Areas that I would think of for breaking would be:

  • garbage collector
  • native code (JNI)
  • file system handling, threading, etc... (unless they use the Sun library code)

The file system, threading, etc... are all the parts of the VM that integrate with the underlying OS. If they use the Sun code then less chance of issues.

I would bet that the transition does go smoothly.

李不 2024-08-20 17:07:38

正如我常说的:只有一种方法可以找到答案:去做!

转换应该需要大约... 30 分钟(您只需安装 JRockit 并在某处更改路径,对吧?)

您应该没事。

我过去在使用 JDBC 时遇到过非常奇怪的问题(因为有问题的代码位于 PreparedStatement 引用中,众所周知,它只是一个接口。底层驱动程序完全相同。)我'关于 insert into 语句,到处都有这种奇怪的错误消息。

老实说,这里还有另一个变量,我正在从 Java 1.2.2 迁移到 Java(JRockit) 1.4,但我认为我不应该遇到所有这些问题。

但同样,它应该足够快才能找出答案。就我而言,我发现我在<<中遇到了这些问题5 分钟,因为这只是一个实验(我参加了 BEA 开发者日,当时他们谈论了 JRockit 的出色功能),我就放弃了它。

As I always say: There is only one way to find out: do it!

The transition should take about what... 30 minutes ( you just install JRockit and change the path somewhere right? )

You should be ok.

I had problems in the past with JDBC which were extremely strange ( because the problematic code was in the PreparedStatement reference that as we all know is just an interface. The underlaying driver was exactly the same.) I've got this strange error messages all over the place about the insert intostatement.

To be honest there was another variable here, I was migrating from Java 1.2.2 to Java(JRockit) 1.4 and yet, I think I shouldn't have had all those problems.

But again, it should be fast enough to find out. In my case I saw I had these problems in < 5 minutes and since that was just an experiment ( I attended to this BEA developers day when they talked about the great features JRockit had ) I just dismissed it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文