我已经使用 Server 2008 和 IIS 7 设置了 Tomcat 服务器。
如何判断 JAVA_OPTS 环境变量是否正在被实际使用?
我之前听说我必须编辑 service.bat 文件才能使用 JAVA_OPTS 环境变量,但是我怎么知道它是否成功?
我一直无法找出是否有办法在日志或其他更定量的东西中查看它。我能想到的尝试测试它的唯一方法是编辑变量并尝试判断性能是否存在差异。我将 JAVA_OPTS 设置为以下内容:
-server -Xmx1k -Xms1k-Xmn1k -Xss128k -XX:+UseParallelGC -XX:ParallelGCThreads=20 -XX:PermSize=1k -XX:MaxPermSize=1k
Run Code Online (Sandbox Code Playgroud)
另外,我发现文档说要将 service.bat 中的以下行更改为:
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties" --JvmMs 128 --JvmMx 256
Run Code Online (Sandbox Code Playgroud)
到:
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties" %JAVA_OPTS%
Run Code Online (Sandbox Code Playgroud)
我运行命令时没有出现错误
service install ServiceName
Run Code Online (Sandbox Code Playgroud)
到目前为止,在我使用更改的内存设置重新安装服务之前,一切似乎都像往常一样快速运行,这让我认为 JAVA_OPTS 没有影响任何事情。
对不起,如果这是一个广泛的问题,但我还没有找到一个很好的线索来了解后端实际发生的事情。有人可以对此有所了解吗?
我正在尝试在 Server 2008 R2/IIS 7.5 机器上设置 Shibboleth SP。
IIS 在浏览到 localhost 时抛出以下错误:
HTTP Error 500.0 - Internal Server Error
Calling LoadLibraryEx on ISAPI filter "C:\opt\shibboleth-sp\lib64\shibboleth\isapi_shib.dll" failed
Run Code Online (Sandbox Code Playgroud)
我假设这是因为 IIS 没有访问该 dll 文件的权限,但我不确定如何修复它。我转到 C:\opt 文件夹并为 shibboleth-sp 文件夹添加了 IIS_USRS 组的权限,但它仍然不起作用。是否有另一个用户需要我授予权限,因为它使用的是 IIS 6 兼容模式?
除了文件夹权限之外,除了基于此错误之外,还有什么我应该检查的吗?
我正在尝试在我的家用计算机上安装 Squid 匿名代理,以便明天进行快速演示。
当我尝试使用 Google Chrome 连接到它时,我收到以下错误代码:
Error 130 (net:ERR_PROXY_CONNECTION_FAILED)
Run Code Online (Sandbox Code Playgroud)
我可以从我的计算机上看到 Squid 网站,但是它给出了一条错误消息:
尝试检索 URL 时遇到以下错误:/
Invalid URL
Some aspect of the requested URL is incorrect.
Some possible problems are:
Missing or incorrect access protocol (should be "http://" or similar)
Missing hostname
Illegal double-escape in the URL-Path
Illegal character in hostname; underscores are not allowed.
Your cache administrator is root.
Run Code Online (Sandbox Code Playgroud)
我的 conf 文件看起来像:
#
# Recommended minimum configuration:
#
acl manager proto cache_object
#acl localhost src 127.0.0.1/32 ::1
#acl to_localhost …Run Code Online (Sandbox Code Playgroud)