- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
假设我有一个包含 1000 行代码的 java 函数,并将其部署在 weblogic 上。
如果PC或Weblogic突然关闭(即强制关闭),代码是否有可能在1000行中的第X行运行并终止?
如果是,是否有任何可能的方法在服务器恢复时“运行”其余代码(从 X+1 到 1000)。
谢谢。
最佳答案
Will there be a chance that code is running & terminated at line X of 1000 lines if the PC or Weblogic is shutdown suddenly (i.e force shutdown)?
是。
If yes, is there any possible way to "run" the rest of the code (from X+1 to 1000) when the server is resumed.
您必须实现这样的机制,然后需要“重置”到X
之前的某个点,然后恢复事务。不过,您的实现可以是具有持久消息的 Rabbit MQ 主题。更典型的配置(根据我的经验)涉及在集群中运行多个 Weblogic 服务器,并在这种情况下故障转移到该集群的另一个成员(并与持久队列结合使用)。
关于java - 如果服务器突然宕机,Java代码会中途终止吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58479008/
我已经为我的 PHP 代码设置了一个 Cron 作业,每 20 分钟运行一次。但它每次都会杀死 EC2 t2micro 实例。这是服务器日志。请帮忙。 ip-172-31-42-52 login: [
将 MassTransit 配置为容错以处理间歇性 RabbitMQ 连接问题或 RabbitMQ 完全崩溃的正确方法是什么?我已经在两台不同的机器之间设置了一个 RabbitMQ 集群并配置了 HA
我们的 Tomcat 6.0.29 在达到最大线程数后宕机。我真的很感激任何帮助,因为它是一个生产服务器。 这是 catalina.log 文件的一部分: INFO: Maximum number o
Redis 在我的应用程序中是可选的,这是即使 Redis 关闭,应用程序必须能够毫无问题地启动的要求之一。 我能够用 spring-data-redis 处理这个问题 1.8.1 版本,但升级到 时
Kafka宕机引发的高可用问题 问题要从一次Kafka的宕机开始说起。 笔者所在的是一家金融科技公司,但公司内部并没有采用在金融支付领域更为流行的RabbitMQ,而是采用了设计之初就为日志处理
我们正在运行 Spark 2.4.0/Scala 2.11,并且运行一些监听 Kafka 主题的 Spark 流应用程序。 它是 Spark Kafka Direct 流 API,我们正在运行 4 个
如果我有一个 MongoDB 副本集,其中有 3 个节点(主要节点、次要节点、仲裁节点),并且主要节点出现故障,现在次要节点成为主要节点,您如何动态处理客户端中的更改,以便它们现在写入基本的? 我在开
我正在运行 Rails 3.1.0 应用程序,但遇到了一个奇怪的问题。在我们的登台服务器上,只有很少的事件,我们有 5 个 ruby 进程不断地使用以下命令 ping mySQL: poll([{
我是一名优秀的程序员,十分优秀!