问题标签 [jelastic]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
828 浏览

tomcat7 - 如何在 Jelastic 中将 Camunda BPM 部署到 Tomcat

我想在 Jelastic 上运行的 Tomcat 7 中设置 Camunda- BPM。我按照说明进行操作。现在的问题是 Jelastic 不允许将文件 bpm-platform.xml 添加到 catalina-home/conf 目录中。所以当我启动tomcat时,我得到

有人可以给我一个提示,我可以在哪里放置 bpm-platform.xml 以便 BPM 引擎启动?

0 投票
1 回答
837 浏览

garbage-collection - 通过补丁获取新的 GC 代理功能(从 1.9.3 开始)

在之前的 Jelastic 论坛中,曾讨论过系统没有释放 RAM,最终导致系统崩溃的问题。

我相当肯定我在我的环境中遇到了这个问题(在Jelastic 1.9.2.1上运行),原因如下:

  • 我的应用程序在其他托管环境中稳定,我的应用程序没有内存泄漏
  • 我可以在图表中看到定期授予更多 RAM,RAM 使用量以统一且可预测的步骤增加
  • RAM 永远不会被释放

我渴望使用Jelastic 1.9.3新的 GC Agent 功能http://docs.jelastic.com/release-notes-193#a http://docs.jelastic.com/releasing-ram-gc-agent

我的云提供商表示他们计划升级到 Jelastic 1.9.3,但没有说什么时候。

问题 1:一旦我的云提供商升级,此功能是否会自动用于我现有的环境?

问题2:现在可以给我的1.9.2.1环境打补丁吗?是否只需要下面的 jar,它是否与我的 1.9.2.1 环境兼容?

从文档中,在 variables.conf 中:-javaagent:/var/lib/jelastic/java/jelastic-gc-agent.jar

更新 - 部分解决

  • 升级后,我的环境没有 jelastic-gc-agent.jar。当我将标准配置添加到我的 variables.conf 时,tomcat 启动失败,因为 jelastic-gc-agent.jar 不存在。

  • 我上传了@leo提供的jar,并正确配置了路径,tomcat成功启动,但是没有证据表明代理正在工作,没有日志记录,没有减少内存消耗。绿线(tomcat 统计数据、RAM 图)只是不断上升(在很长一段时间内)。

  • 我已经配置了 jvisualvm。我的一个环境的缩放限制为 12(在 tomcat 组件上)。在 jvisualvm Overview 中观察到以下内容: -XX:+UseSerialGC -Xminf0.1 -Xmaxf0.3 -Xms16M -Xmx1501M -javaagent:/opt/tomcat/lib/jelastic-gc-agent.jar=debug=true,period= 60

  • 来自http://docs.jelastic.com/releasing-ram-gc-agent

    它 [Jelastic GC 代理] 仅适用于两种垃圾收集:

    • -XX:+UseParNewGC (如果 -Xmx < 8000m)
    • -XX:+UseG1GC (如果 -Xmx >= 8000m)
  • 所以我然后尝试了“-XX:+UseParNewGC”,但我得到了一个错误:选项列表中的收集器组合冲突;有关允许的组合,请参阅发行说明 错误:无法创建 Java 虚拟机。错误:发生了致命异常。程序将会退出。

  • 当我创建一个全新的环境并启用代理时,我可以看到它正在工作、记录等。

  • 一些成功:我的一个较大的环境(Scaling Limit 64)已成功修补,我看到代理正在工作。因此,较小的环境肯定存在问题。

0 投票
1 回答
1188 浏览

mysql - 无法连接到jelastic中的mysql数据库

我无法连接到我从系统导入的 mysql 数据库。我已将用户添加到我导入的数据库并在代码中提供相同的用户名和密码,但我的战争应用程序没有连接到数据库。我的战争应用程序是从导入的多云数据数据库中检索任何内容我的代码如下......(我是试用用户)

0 投票
1 回答
568 浏览

bash - Cronjob with Jelastic and Glassfish

I am running a web-application (MyCronTest) on a Glassfish-Server in a Jelastic-Environment. This web-application contains the servlet (/test), that I would like to call regularly with a cron-job.

So I followed this tutorial from the Jelastic docs, but they use Tomcat instead of Glassfish and I am not so sure about the paths and where to put which file...and now I am lost ;)

the servlet
When calling the servlet directly in my browser it prints out the following line to System.out:

the bash file to execute
I created a bash script called myCronJob.sh and put it in the directory glassfish3/temp:

I tested it of course, it is executable and it works (at least when I execute it on my computer).

the cron event scheduler
according to the tutorial there is a file /cron/tomcat I need to edit. Well, I found a /cron/glassfish which (I am guessing) should do the same.

I added an empty line at the end, as they told me to. I even tried it with

as they suggested in the tutorial. But still no output. No error.. just empty log files.

Does anyone have an idea what I am missing here? Am I doing something wrong?

Solution / Edit

Thanks to Damien's Answer I was finally able to narrow down my problem. It was actually the line in my bash-script that caused the problem:

should have been

since I was blocked by a firewall. Lucky for me, my Glassfish is running on the same machine / environment, so localhost works.
Everything else is correct.

0 投票
3 回答
1180 浏览

enterprise - Jelastic(或任何 PaaS)对于企业级 Saas 来说是否足够强大和可靠?

如果您将 Jelastic 用于针对企业客户的 SaaS 应用程序,您会信任它吗?

我现在正在使用它,因为它可以轻松地为 Java 应用程序创建堆栈。但这几乎感觉容易了。

你有什么想法?

0 投票
1 回答
273 浏览

tomcat - Tomcat 多域 Jelastic 教程

我尝试按照 Jelastic 的“多个域”教程进行操作,但没有成功。

我将两个应用程序部署到不同的上下文,映射 DNS 记录中的 cname,编辑 server.xml 并添加主机条目。但是我在尝试访问时遇到错误:

这是我的 server.xml 条目:

应用程序部署为:

有谁知道为什么会这样。我已经仔细检查了配置,它看起来不错。

0 投票
1 回答
240 浏览

ssl - 修改 Jelastic 下的可信 CA

我正在尝试在 Jelastic 基础架构上设置基于 CAS 的回声系统。我能够使用此处描述的示例 Web 应用程序在同一个 Tomcat 7 实例下设置服务器和客户端。我使用的 SSL 证书(CA 和服务器)是自签名的。

当请求受保护的资源时,webapp 正确地重定向到 CAS 登录页面,并且在服务器级别进行了很好的身份验证。但是,在返回流程中出现问题,浏览器显示异常,其根本原因如下:

这是因为 CAS 协议有一个额外的客户端-服务器验证对话,该对话在身份验证后立即完成,并且在此对话期间,客户端必须再次信任服务器。这一次,它不使用 Tomcat 的 SSL 设置,而是使用 JVM 的设置(见这里

问题是,据我所知,在 Jelastic 上无法访问 JAVA_HOME/jre/lib/security 文件夹。有什么提示吗?谢谢。

更新: 我找到了解决方案。在 Jelastic 上,自 v.1.8.5 起,Tomcat 应用程序对 JAVA_HOME/jre/lib/security 文件夹具有写入权限。这个恕我直言打开了一个安全问题,但对于这个特定的情况是好的。我已经能够编写一个简单的 servlet,将我的证书添加到 JVM cacerts 文件中,并且我已经解决了这个问题。

0 投票
1 回答
213 浏览

php - 配置:DNS 或 Apache

我有以下问题。我有两个域:www.domain1.de 和 www.domain2.de 我也有路径在 Jelastic 服务器上,可以在其中找到我的 PHP 页面 myphpsite.jelastic.dogado.eu。

现在我想做以下事情。

1)如果我去www.domain1.de,那么应该显示Web浏览器www.domain1.de的地址栏,但是页面是从myphpsite.jelastic.dogado.eu获取的。

2)当我去www.domain2.de时,应该显示Web浏览器www.domain2.de的地址栏,但是页面是从myphpsite.jelastic.dogado.eu/admin/获取的。

所以

1) www.domain1.de -> myphpsite.jelastic.dogado.eu 2) www.domain2.de -> myphpsite.jelastic.dogado.eu/admin/

CNAM Record 我能做到的第一个

但是我们可以在没有框架的情况下解决第二个问题吗?

谢谢你

0 投票
1 回答
216 浏览

java - 当用户上传时,在jelastic上上传的maven/spring有图像问题?

我已经在 jelastic 上上传了我的 maven/spring 项目,并使用以下方法保存图像:

它在本地主机上工作,图像保存在 img 文件夹中,而在服务器上,它保存在绝对路径上,名称为“img/xyz.jpeg”

我想保存它

它正在节省

0 投票
2 回答
571 浏览

php - Jelastic Wordpress 站点安装在子目录中并设置不适用于根域

我想在访问域中直接拥有一个 WordPress 站点。没有 WP 文件实际上是在主文件夹中。

例如:我将 WordPress 安装在/blog文件夹 (example.com/blog) 中,我可以配置为直接在域 (example.com) 中访问,而不包括文件夹名称。(在本例中为 /blog 文件夹)。

优点是主文件夹更有条理,其他文件夹中的现有脚本正常运行,以提高安全性。

根据简单的说明,我已经在我的 macbook air 上的开发环境中轻松运行了它:

但是,这样做在Jelastic中创建了环境,这是行不通的。

有人可以在Jelastic上做到这一点吗?将 wordpress 安装放在一个文件夹中,然后通过Jelastic配置为访问根域?


我的附加信息:

我正在使用试用帐户来测试Jelastic

创建的尝试失败的环境有:

  1. 环境一:NGINX 1.4.3 (loadbalacer) + Apache 2.2 + 5.5 + Memcached MariaDB 1.4.15;
  2. 环境 2:Apache 2.2 + MariaDB 5.5;

Jelastic 仅适用于我的 Apache Server 根目录。使用 NGINX 服务器(不像负载均衡器)安装 wordpress 是不可能的。