加载缓慢、1502 个查询和会话中的大量数据 - 请参阅调试日志

发布于 2024-10-10 06:29:26 字数 421 浏览 0 评论 0原文

我已经尝试调试我的网站有一段时间了,我发现对于每个页面,系统都在执行大量查询,并且存储在会话中的数据已达到在数据库中编码的近一百万个字符。

该网站正在使用 joomla 和 Virutmart 的电子商务。这超出了正常范围,我尝试禁用除 Virtuemart 之外的所有模块、插件和组件。

有人可以帮我弄清楚这些查询来自哪里以及如何减少它们。我需要知道如何找出会话中充满了所有这些信息的内容。

查看此链接并查看页面底部的调试日志。

谢谢

链接:我的网站< /a>

I've been trying to debug my site for some time now and I see that for every page the system is doing large amount of queries and data which is stored in session has reached almost a million characters that are encoded in the db.

The site is using joomla with ecommerce from virtuemart. This is way beyond normal and I have tried disabling all modules,plugins and components except Virtuemart.

Can someone please help me figure out where these queries are coming from and how to reduce them. I need to know how I can find out what is filling the session with all this information.

Check out this link and take a look at the debug log on the bottom of the page.

Thank you

Link: My site

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

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

发布评论

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

评论(1

琉璃梦幻 2024-10-17 06:29:26

看起来您的系统在一个查询中分别加载每种产品的数据。该页面上有很多产品。
同样的问题,例如在magento中。
如果您“过于面向对象”,这就是权衡。
恐怕如果不改变系统的内部结构,你就无能为力。
您可能需要考虑切换到另一个更注重性能的商店系统。
据我所知,oxy 很好,而且我已经看到了一些令人信服的基准测试和加载模式。

优化当前系统的其他“更高层”方法是

  • 检查操作码缓存是否正常,
  • 有一个本地数据库服务器来选择这些东西(可能是从主服务器复制)
  • 确保查询缓存运行良好并且数据库的内存分配是很好
  • ,也许将您的会话移至 apc/memcached
  • ,也许您的系统中有类似页面 html 缓存的内容

looks like your system loads the data for each products seperately in one query. and there are a lot of products on that page.
same problem for example in magento.
thats the tradeoff if you get "too object oriented".
im afraid theres nothing much you can do about it without changing the guts of your system.
you may want to consider switching to another shop system that is more focused on performance.
oxid is good from what ive heard, and i've seen some convincing benchmarks and loading patterns.

other "higher layer" approaches to optimize your current system are

  • checking whether opcode caching is doing ok
  • have a local database server for selecting this stuff (maby replication from the master)
  • make sure query caching is doing good and the ram allocations for your database are fine
  • maby move your sessions to apc/memcached
  • maby you have something like page html caching in your system
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文