且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Liferay启动花费的时间太长

更新时间:2023-11-30 19:35:46

注释已经给出了一些提示.我要说的是,最重要的问题是检查是否使用了虚拟内存(分页)-操作系统必须将内存分页到磁盘时,您就已经迷失了:性能可能受到巨大打击.

The comments already gave some hints. I'd say, the most important issue is to check if virtual memory (paging) is used - as soon as the OS has to page memory to disk, you have lost: There's a potentially huge performance hit.

在升级内存(例如,如果您访问虚拟内存)时,您可能要考虑将操作系统升级到64位操作系统-32位只能寻址4G,并且由于每个进程只能获得一个内存,因此您可能会遇到appserver内存的限制.内存量有限.

When you upgrade your memory (e.g. if you hit the virtual memory) you might want to consider upgrading the OS to a 64bit OS - 32bit can only address 4G and you might hit limits with appserver memory as each process can only get a limited amount of memory.

您还可以在运行许多其他应用程序之前测试Liferay是否启动得更快-这是您遇到内存问题的另一个提示.

You could also test if Liferay starts up faster before you run so many other applications - this is another hint that you're running into a memory issue.

SSD选项将进一步加速您的系统,但价格要比RAM高得多.此外,实际上也不建议使用SSD上的虚拟内存-它将使驱动器更快地磨损.而且,不要在SSD上使用虚拟内存,而是不要使用虚拟内存-这将更快,更便宜.

The SSD option will further accelerate your system, but for a much higher price than RAM. Also, virtual memory on SSD is not really recommended - it will wear out the drive quicker. And instead of using virtual memory on SSD, rather don't use virtual memory - this will be quicker AND cheaper.