• 原创作品
  • 出售信息
妈呀,竟然没找到符合条件的作品!缩短关键词,更容易搜到作品哦~

推荐

· 矛盾(小品剧本)
· 要出发了(广告剧本)
· 我是秤砣(小品剧本)
· 心海回魂(剧本杀剧本)
· 有钱了(广告剧本)
· 蟑螂(话剧舞台剧剧本)
· 我的太爷爷(相声剧本)
· 新闻联播(小品剧本)

刚被收藏过的

· 剧本写作的基本步骤(创作交流)
· 盼儿归(话剧舞台剧剧本)
· 两个消息(话剧舞台剧剧本)
· 蟑螂(话剧舞台剧剧本)
· 德才兼备(话剧舞台剧剧本)
· 裂隙回响(话剧舞台剧剧本)
· 新闻联播(小品剧本)
· 裂隙回响(第3版)(话剧舞台剧剧本)

刚被过的

· 剧本写作的基本步骤(创作交流)
· 影视剧本写作的常见问题(创作交流)
· 如何构建一个好故事(创作交流)
· 红昭愿(剧本杀剧本)
· 把牛奶倒进大海里(小品剧本)
· 盼儿归(话剧舞台剧剧本)
· 炎火铸魂(话剧舞台剧剧本)
· 新闻联播(小品剧本)
编剧培训班:电影编剧实战班
分享页面
返回顶部
' ' 支持通过 URL 临时覆盖阈值与Top:?memlog=1&kb=131072&minmb=2048&top=50 Const EnableAutoMemoryLog = True ' 是否自动记录高内存占用开关 Const AutoLogTopN = 50 Const AutoLogThresholdKB = 131072 ' 128MB Const AutoLogProcessMemoryMinMB = 2048 ' 实例进程内存超过 2GB 才记录 Sub AutoMemoryLog(db) On Error Resume Next If db Is Nothing Then Exit Sub Dim enable: enable = EnableAutoMemoryLog Or (LCase(Request("memlog")) = "1") If Not enable Then Exit Sub ' URL 参数临时覆盖与安全边界 Dim thresholdKB, processMinMB, topN thresholdKB = AutoLogThresholdKB processMinMB = AutoLogProcessMemoryMinMB topN = AutoLogTopN If IsNumeric(Request.QueryString("kb")) Then thresholdKB = CLng(Request.QueryString("kb")) If thresholdKB < 16384 Then thresholdKB = 16384 ' 最小 16MB If thresholdKB > 1048576 Then thresholdKB = 1048576 ' 最大 1GB End If If IsNumeric(Request.QueryString("minmb")) Then processMinMB = CLng(Request.QueryString("minmb")) If processMinMB < 512 Then processMinMB = 512 ' 最小 512MB If processMinMB > 65536 Then processMinMB = 65536 ' 最大 64GB End If If IsNumeric(Request.QueryString("top")) Then topN = CInt(Request.QueryString("top")) If topN < 10 Then topN = 10 If topN > 200 Then topN = 200 End If ' 先检查实例进程内存是否超过阈值(2GB),否则不记录 Dim rsMem: Set rsMem = Server.CreateObject("ADODB.Recordset") rsMem.Open "SELECT physical_memory_in_use_kb/1024 AS ProcessMemoryMB FROM sys.dm_os_process_memory;", db, 1, 1 Dim memMB: memMB = 0 On Error Resume Next memMB = rsMem("ProcessMemoryMB").Value On Error Goto 0 If Not rsMem Is Nothing Then If rsMem.State = 1 Then rsMem.Close: Set rsMem = Nothing If IsNumeric(memMB) Then If CDbl(memMB) < processMinMB Then Exit Sub End If ' 1) 写入数据库日志表(依赖 install_memory_log.sql 中的对象) db.Execute "EXEC dbo.LogHighMemoryGrants @Top=" & topN & ", @RequestedKBMin=" & thresholdKB If Err.Number <> 0 Then ' 静默失败,避免影响页面;可改为写入文本 Err.Clear End If On Error Goto 0 End Sub %>

Microsoft VBScript ʱ '800a000d'

Ͳƥ: 'AutoMemoryLog'

D:\WEB\JUBEN\SEARCH\../inc/footer.asp 69