当前位置:网站首页>mod_ WSGI + pymssql path SQL server seat
mod_ WSGI + pymssql path SQL server seat
2022-07-06 19:50:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
by pymssql access SQL Server moment , directly python Implementation without problems . by mod_wsgi and Apache When deployed . All requests are found hang Then query the database .
adopt google Found the answer , thank google, Please refer to :https://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_State_API
Briefly ,mod_wsgi For each virtual host and app mount point Create a sub interpreter.python There is a famous GIL, Through C extension Visit GIL State when , There is only the first sub interpreter To work properly , Suppose you use the possible sub interpreter May cause deadlock or crash, because pymssql It's a C extension So there will be this problem , The solution is . Add configuration items :
WSGIApplicationGroup %{GLOBAL}
Force this app Use the first one sub interpreter, bring GIL Normal work . After finishing ,mod_wsgi everything ok.
Copyright notice : This article is an original blog article , Blog , Without consent , Shall not be reproduced .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/117139.html Link to the original text :https://javaforall.cn
边栏推荐
- Information System Project Manager - Chapter VIII project quality management
- Interview assault 63: how to remove duplication in MySQL?
- 语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech
- Lick the dog until the last one has nothing (simple DP)
- 从sparse.csc.csr_matrix生成邻接矩阵
- Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
- 潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe
- Simple application of VBA script in Excel
- From spark csc. csr_ Matrix generate adjacency matrix
- 腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发
猜你喜欢
[infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)
2022年6月语音合成(TTS)和语音识别(ASR)论文月报
激进技术派 vs 项目保守派的微服务架构之争
蓝桥杯 微生物增殖 C语言
How to access localhost:8000 by mobile phone
手把手教你学会js的原型与原型链,猴子都能看懂的教程
Hudi vs Delta vs Iceberg
信息系统项目管理师---第八章 项目质量管理
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
Introduction to enterprise lean management system
随机推荐
Mysql Information Schema 学习(一)--通用表
Introduction to enterprise lean management system
[translation] micro survey of cloud native observation ability. Prometheus leads the trend, but there are still obstacles to understanding the health of the system
[translation] supply chain security project in toto moved to CNCF incubator
【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
After solving 2961 user feedback, I made such a change
Lick the dog until the last one has nothing (simple DP)
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
Leetcode 30. 串联所有单词的子串
Mysql Information Schema 學習(一)--通用錶
beegfs高可用模式探讨
Using clip path to draw irregular graphics
范式的数据库具体解释
【翻译】供应链安全项目in-toto移至CNCF孵化器
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
HDU 1026 Ignatius and the Princess I 迷宫范围内的搜索剪枝问题
leetcode先刷_Maximum Subarray
Blue Bridge Cup microbial proliferation C language
Recursive implementation of department tree