从上个月开始,我的服务器利用率随着时间的推移而增加,在24-30小时之后它就崩溃了。每天我必须重新启动服务器。我的CRM有150-200个用户。
我无法找到..问题在哪里。如果有人对此有所了解,请建议我如何解决。
以下是所需的详细信息。
SugarCRM:版本7.6.5 Sugar Version 6.5.23(Build 1061) PHP版本5.6.28
Apache:服务器版本:Apache / 2.4.23(亚马逊) server-8cpu 32gb ram 100 GB存储 m4.2x大型实例
DataBase:mysql版本:5.7.16-log 2 CPU ,8GB RAM,100 GB存储 - 数据库 M4.LARGE
*Table* *Size (GB)*
emails_text 16.14
aos_products_quotes 11.35
aop_case_updates 9.15
email_addr_bean_rel 3.37
accounts 2.42
cases 2.16
email_addresses 2.13
contacts 1.91
nm_order 1.7
securitygroups_records 1.43
cases_audit 1.39
emails_email_addr_rel 1.28
emails 1.13
accounts_contacts 1.01
job_queue 0.78
emails_beans 0.72
nm_order_accounts_c 0.71
aod_indexevent 0.61
cases_nm_team_preformance_1_c 0.58
aop_case_events 0.5
nm_team_preformance 0.38
accounts_cstm 0.27
cases_cstm 0.22
tracker 0.19
sugarfeed 0.18
notes 0.11
folders_rel 0.1
contacts_cstm 0.09
cstm_teckinfo 0.09
leads 0.09
leads_cases_1_c 0.08
accounts_audit 0.08
contacts_cases 0.07
contacts_audit 0.07
nm_order_cases_1_c 0.03
cstm_teckinfo_cstm 0.02
user_login_history 0.01
nm_customer_contact 0.01
leads_cstm 0.01
acl_roles_actions 0.01
aos_contracts_audit 0
aos_contracts_documents 0
aos_invoices 0
aos_invoices_audit 0
aos_line_item_groups 0
aos_line_item_groups_audit 0
aos_pdf_templates 0
aos_pdf_templates_audit 0
aos_product_categories 0
aos_product_categories_audit 0
aos_products 0
aos_products_audit 0
templatesectionline_audit 0
aos_products_quotes_audit 0
aos_quotes 0
aos_quotes_aos_invoices_c 0
aos_quotes_audit 0
aos_quotes_os_contracts_c 0
aos_quotes_project_c 0
aow_actions 0
aow_conditions 0
aow_processed 0
aow_processed_aow_actions 0
aow_workflow 0
aow_workflow_audit 0
bugs 0
bugs_audit 0
calls 0
calls_contacts 0
calls_leads 0
calls_reschedule 0
calls_reschedule_audit 0
calls_users 0
campaign_log 0
campaign_trkrs 0
campaigns 0
campaigns_audit 0
templatesectionline 0
tasks 0
cases_bugs 0
securitygroups_users 0
securitygroups_default 0
cases_test 0
config 0
securitygroups_cstm 0
securitygroups_audit 0
contacts_bugs 0
securitygroups_acl_roles 0
securitygroups 0
contacts_users 0
cron_remove_documents 0
schedulers 0
cstm_teckinfo_audit 0
cstm_teckinfo_cases_c 0
saved_search 0
currencies 0
custom_fields 0
document_revisions 0
documents 0
documents_accounts 0
documents_bugs 0
documents_cases 0
documents_contacts 0
documents_opportunities 0
eapm 0
roles_users 0
roles_modules 0
email_cache 0
email_marketing 0
email_marketing_prospect_lists 0
email_templates 0
emailman 0
roles 0
reminders_invitees 0
reminders 0
aos_contracts 0
vcals 0
fields_meta_data 0
folders 0
relationships 0
folders_subscriptions 0
fp_event_locations 0
fp_event_locations_audit 0
fp_event_locations_fp_events_1_c 0
fp_events 0
fp_events_audit 0
fp_events_contacts_c 0
fp_events_fp_event_delegates_1_c 0
fp_events_fp_event_locations_1_c 0
fp_events_leads_1_c 0
fp_events_prospects_1_c 0
import_maps 0
inbound_email 0
inbound_email_autoreply 0
inbound_email_cache_ts 0
jjwg_address_cache 0
jjwg_address_cache_audit 0
jjwg_areas 0
jjwg_areas_audit 0
jjwg_maps 0
jjwg_maps_audit 0
jjwg_maps_jjwg_areas_c 0
jjwg_maps_jjwg_markers_c 0
jjwg_markers 0
jjwg_markers_audit 0
prospects_cstm 0
prospects 0
leads_audit 0
prospect_lists_prospects 0
prospect_lists 0
linked_documents 0
meetings 0
meetings_contacts 0
meetings_cstm 0
meetings_leads 0
meetings_users 0
nm_custom_sms 0
nm_custom_sms_audit 0
prospect_list_campaigns 0
nm_customer_contact_audit 0
nm_default_sms 0
nm_default_sms_audit 0
nm_default_sms_nm_custom_sms_c 0
nm_dispositions 0
nm_dispositions_audit 0
projects_products 0
projects_opportunities 0
nm_order_aos_invoices_1_c 0
nm_order_audit 0
projects_contacts 0
nm_order_documents_c 0
nm_sms_history 0
nm_sms_history_audit 0
projects_cases 0
nm_team_preformance_audit 0
projects_bugs 0
oauth_consumer 0
oauth_nonce 0
oauth_tokens 0
opportunities 0
opportunities_audit 0
opportunities_contacts 0
opportunities_cstm 0
outbound_email 0
outbound_email_audit 0
project 0
project_contacts_1_c 0
project_cstm 0
project_task 0
project_task_audit 0
project_users_1_c 0
projects_accounts 0
aor_scheduled_reports 0
aor_reports_audit 0
aor_fields 0
aor_reports 0
aor_charts 0
aor_conditions 0
upgrade_history 0
aop_case_updates_audit 0
user_preferences 0
aop_case_events_audit 0
aok_knowledgebase_categories 0
aok_knowledgebase_audit 0
aok_knowledge_base_categories_audit 0
aok_knowledgebase 0
aod_indexevent_audit 0
aok_knowledge_base_categories 0
aod_index_audit 0
users 0
am_tasktemplates_audit 0
aod_index 0
am_tasktemplates 0
am_tasktemplates_am_projecttemplates_c 0
am_projecttemplates_audit 0
am_projecttemplates_project_1_c 0
alerts 0
am_projecttemplates 0
acl_roles_users 0
address_book 0
acl_roles 0
users_feeds 0
accounts_opportunities 0
acl_actions 0
users_last_import 0
accounts_cstm_teckinfo_1_c 0
accounts_cases 0
users_password_link 0
users_signatures 0
accounts_bugs 0
releases 0
favorites 0
答案 0 :(得分:0)
您拥有多少数据通常无关紧要,因为Sugar通常一次只处理有限数量的数据。 即使用户会例如一次请求所有报价产品(通过使用“全选”),单个请求中将提供多少记录的糖限制(约1000)。据我所知,无论如何。
除非这是一些奇怪的Sugar Bug,否则我怀疑其中一个是原因:
$bean->load_relationship($relName)
和$bean->$relName->getBeans()
之类的操作链接。即使您正在检查某些内容,您可能也不会需要来执行此操作 - 而是您可以尝试在数据库端过滤它们(例如,使用SugarQuery或$ db->查询( )使用原始SQL或内部使用过滤器API)。然后Sugar / httpd只需将这些记录加载为您实际需要的Beans(如果有的话)。unset()
来帮助(可悲的是弱的)PHP垃圾收集器释放内存。注意:在取消Sugar 7或更高版本的Beans之前,您可能希望先使用BeanFactory::unregister($bean)
将其从缓存中删除。我不确定Sugar的旧版本是否也使用bean缓存。