I have a website that consists of .xml, .jsp, .servlet, .java, persistence and a database. I make a server on Cybera as shown below:
Using username "ubuntu".
Authenticating with public key "imported-openssh-key"
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-121-generic x86_64)
Documentation: https://help.ubuntu.com/
System information as of Tue Mar 27 18:55:56 UTC 2018
System load: 0.0 Processes: 83
Usage of /: 4.5% of 19.65GB Users logged in: 1
Memory usage: 3% IP address for eth0: 10.1.10.0
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
0 packages can be updated.
0 updates are security updates.
Cloud Image Helper Scripts
To enable automatic updates please run:
/usr/local/bin/enableAutoUpdate
To install the latest OpenStack tools please run:
/usr/local/bin/installOpenStackTools
To use the local software update proxy please run:
/usr/local/bin/localSUS
To remove this message from your message of the day please run:
sudo rm /etc/motd
Last login: Tue Mar 27
ubuntu#kinstance:~$
I am wondering if there is a way to deploy the website using this method. I am still playing around with Cybera to get it running but I thought I could use some guidance if my method is just plain off.
Related
I am trying to do distributed load testing on my network. I have two computers running WSL2 and the firewall is turned off on both of them. I am using OpenJDK version 1.8.0_292 on both WSLs. The Jmeter version on both systems is 5.4.2. I have server.rmi.ssl.disable=true in both Jmeter.properties files. I can access the web application when I type 192.168.1.6:4080 in my browser's URL on my computer running on 192.168.1.18.
The jmeter.properties file for the computer running the web application has remote_hosts=192.168.1.18
The jmeter.properties file for the computer that will be the slave machine has server.rmi.localport=4000
One of my Computers is running the web application and will also be running the client (i.e. ./jmeter). In the Jmeter test plan, the HTTP Request Defaults have the server name 192.168.1.6 and the port as 4080. My other computer has the IPv4 address of 192.168.1.18.
I start the slave machine first by entering ./jmeter-server -n -Djava.rmi.server.hostname=192.168.1.18 -X and the following is outputted Created remote object: UnicastServerRef2 [liveRef: [endpoint:[192.168.1.18:4000](local),objID:[-5f7e0f00:17ab805fd23:-7fff, -5246535002214415146]]]
Now I start the client by entering './jmeter -n -t ~/test_plan.jmx -l ~/result.jtl -X -r '. On the slave machine I get
Starting the test on host 192.168.1.18 # Sat Jul 17 22:02:16 PDT 2021 (1626584536943)
Finished the test on host 192.168.1.18 # Sat Jul 17 22:03:25 PDT 2021 (1626584605136)
And on the client machine I get
Creating summariser <summary>
Created the tree successfully using /home/jasperhale/test_plan.jmx
Configuring remote engine: 192.168.1.18
Starting distributed test with remote engines: [192.168.1.18] # Sat Jul 17 22:10:44 PDT 2021 (1626585044116)
Remote engines have been started:[192.168.1.18]
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
The problem is that after the slave finishes, the client does not stop and report results. When I inspect the jmeter-server.log file I get this error message
2021-07-17 22:56:22,545 ERROR o.a.j.s.RemoteListenerWrapper: testStarted(host) on 192.168.1.18
java.rmi.ConnectException: Connection refused to host: 192.168.1.6; nested exception is:
2021-07-17 22:11:50,420 INFO o.a.j.s.DataStrippingSampleSender: Test Ended on 192.168.1.18
2021-07-17 22:11:50,420 INFO o.a.j.s.BatchSampleSender: Test Ended on 192.168.1.18
2021-07-17 22:11:52,481 ERROR o.a.j.s.BatchSampleSender: testEnded(host)
java.rmi.ConnectException: Connection refused to host: 192.168.1.6; nested exception is:
the error message is way bigger but the main issue is the connection refused
the slave machine is making requests from the test_plan. Also mode=Standard in both properties files. The report files I am trying to collect are the aggregate report, view results tree, and summary report. I've been stuck on this for a while, any help is greatly appreciated.
WSL uses a different IPv4 Address and I was getting those addresses by entering ipconfig into a windows command prompt. I tried it on windows not WSL and it worked.
Try explicitly setting client.rmi.localport property on both master and slave machines to some free port which is not used by any other process like:
client.rmi.localport=1234
Double check that you can reach this host and port from the slave using telnet or netcat or whatever command is there
Once you will be able to reach out from the slave to the master and from the master to the slave your distributed setup should start working normally
More information:
Remote hosts and RMI configuration
JMeter Distributed Testing with Docker
Also having JMeter and the system under test running on the same host is not something you should be normally doing, JMeter can be very resource intensive and you may run into a race condition when both JMeter and the system under test will be struggling for the operating system resources (CPU, RAM, etc.) so test results might be inaccurate
We are running Kubernetes (1.18) with Docker 1.19 & systemd on an on-prem deployment with 3 masters and 3 workers. OS is RedHat 7.8.
Container is a Java 13 based spring boot app (using base image as openjdk:13-alpine) and below are the memory settings.
Pod:
memory - min 448M and max 2500M
cpu - min 0.1
Container:
Xms: 256M, Xmx: 512M
When traffic is send for a longer time, the container suddenly restarts; and in Prometheus I can see the Pod memory is below the max level (only around 1300MB).
In the pod events I can see warnings for liveness and readiness probes; and the pod getting restarted.
State: Running
Started: Sun, 23 Aug 2020 15:39:13 +0530
Last State: Terminated
Reason: Error
Exit Code: 137
Started: Sun, 23 Aug 2020 15:23:03 +0530
Finished: Sun, 23 Aug 2020 15:39:12 +0530
Ready: True
Restart Count: 14
What are logs that I can refer to figure out why a restart was triggered? Application log is not helping at all; after the last log of the running app; I can see the starting line of the log as the next line.
What are the recommended approaches to troubleshoot this?
Thanks
137 means 128 + 9 (so it was killed with kill -9)
https://tldp.org/LDP/abs/html/exitcodes.html
Have a look at the pod and application logs.
Maybe the container needs more resources to start?
How to check oracle listener status by java program on Linux Server.
How I do the server by manually.
After login to the server, I have to execute .oraenv proflie of oracle database
which asks for Oracle SID{Oracle database name}
then it will start working
lsnrctl status command.
[oracle#xx$ . oraenv
ORACLE_SID = [daltaasm] ? deltaasm
The Oracle base has been set to /u01/app/oracle
oracle#XX$ clear
oracle#xx$ . oraenv
ORACLE_SID = [deltaasm] ? deltaasm
The Oracle base remains unchanged with value /u01/app/oracle
oracle#xx$ ^C
oracle#xx$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 05-APR-2018 05:18:21
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 02-APR-2018 11:45:50
Uptime 2 days 17 hr. 32 min. 31 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/diag/tnslsnr/deltaoramegan/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DeltaOraMegan.local)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "deltaasm" has 1 instance(s).
Instance "deltaasm", status READY, has 1 handler(s) for this service...
Service "deltaasmXDB" has 1 instance(s).
Instance "deltaasm", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle#xx$ ^C
So how to implement java program to check lsnrctl status command status
If I don't do manually execuation. oraenv profile on Linux server
it will show lsnrctl status command not found
ex oracle#xx$ snrctl status
lsnrctl status command not found
Please suggest the problem solution in java program
oraenv is just a wrapper shell script that will set $ORACLE_HOME, $ORACLE_SID, $ORACLE_BASE and the $PATH variable for you. You can just open it with a text editor and you will see all the shell code.
In a nutshell, it will look at /etc/oratab where Oracle records the information of Oracle homes (there can be more than one on a given server) and also which database uses those which Oracle home.
The lsnrctl binary can be found in $ORACLE_HOME/bin, so the trick is to find out what $ORACLE_HOME is. If you install it in a fixed location, you can just simple set the $ORACLE_HOME and $PATH accordingly, for example:
Assuming that I installed the Oracle software in /opt/oracle/product/12.2.0.1/dbhome_1 my environment variables would look as follows:
export ORACLE_HOME=/opt/oracle/product/12.2.0.1/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
From that point on you can now just call lsnrctl (because it's now in the $PATH).
So, the trick is to find out where you have the Oracle software installed which you can just find out by looking at /etc/oratab or, in case you always install it in the same place (very often the case), just set the variables beforehand.
I am working on an android project which uses data from Google data store. For this I have JSP & Servlet based admin module which will be used to upload data. To read data from Android client application I have cloud entry points.
Thus, I have created a module comprising of JSP, servlets, and cloud entry points. This is working fine with local dev server. Able to access data through android app.
Now, trying to deploy the module to Google App Engine. But getting following error:
SEVERE: Endpoints configuration not updated. The app returned an
error when the Google Cloud Endpoints server attempted to communicate
with it.
What could be missing here?
Let me know if anymore information needed regarding this issue.
Please help me in this regard.
Full trace:
/usr/lib/jvm/java-8-oracle/bin/java -Dfile.encoding=UTF-8 -classpath /root/.gradle/appengine-sdk/appengine-java-sdk-1.9.18/lib/appengine-tools-api.jar com.google.appengine.tools.admin.AppCfg --application=rotary-bidar-01 --version=1 --oauth2 --oauth2_client_secret=***** --oauth2_client_id=***** --oauth2_refresh_token=***** update /mnt/4CF2AADEF2AACC10/Projects/Rotary_Bidar/AndroidApplication/RotaryBidar/server/build/exploded-app
Reading application configuration data...
Jan 16, 2016 11:28:59 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /mnt/4CF2AADEF2AACC10/Projects/Rotary_Bidar/AndroidApplication/RotaryBidar/server/build/exploded-app/WEB-INF/appengine-web.xml
Jan 16, 2016 11:28:59 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /mnt/4CF2AADEF2AACC10/Projects/Rotary_Bidar/AndroidApplication/RotaryBidar/server/build/exploded-app/WEB-INF/web.xml
Beginning interaction for module default...
0% Created staging directory at: '/tmp/appcfg5838290850638628913.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /tmp/1452967141068-0/org/apache/jsp/admin_jsp.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Jan 16, 2016 11:29:10 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /tmp/appcfg5838290850638628913.tmp/WEB-INF/web.xml
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 13 static files.
31% Cloning 50 application files.
40% Uploading 2 files.
52% Uploaded 1 files.
61% Uploaded 2 files.
68% Initializing precompilation...
73% Sending batch containing 2 file(s) totaling 1KB.
90% Deploying new version.
95% Will check again in 1 seconds.
98% Will check again in 2 seconds.
99% Will check again in 4 seconds.
99% Will check again in 8 seconds.
99% Will check again in 16 seconds.
99% Will check again in 32 seconds.
99% Endpoints configuration not updated. The app returned an error when the Google Cloud Endpoints server attempted to communicate with it.
Jan 16, 2016 11:30:32 PM com.google.appengine.tools.admin.AppVersionUpload checkEndpointsServingStatusResult
99% See the deployment troubleshooting documentation for more information: https://developers.google.com/appengine/docs/java/endpoints/test_deploy#troubleshooting_a_deployment_failure
SEVERE: Endpoints configuration not updated. The app returned an error when the Google Cloud Endpoints server attempted to communicate with it.
99% Ignoring Endpoints failure and proceeding with update.
99% Closing update: new version is ready to start serving.
99% Uploading index definitions.
Update for module default completed successfully.
Success.
Cleaning up temporary files for module default...
I have a strange issue. Until 2 days back, my setup has been working for almost 2 years.
the setup that always worked :
1. I use postgress 9.3 for development on my laptop.
2. I use intellij idea database tools to browse data
3. sometimes I use pgadmin
4. I run maven build of our application
for the past 2 days, when I run maven install , build fails with
[main] ERROR SqlExceptionHelper.logExceptions(146) | Cannot create PoolableConnectionFactory (The connection attempt failed.)
but, my idea client, pgadmin have no problem connecting.
pg log has the following :
2015-11-06 11:08:02 CST LOG: could not receive data from client: An operation was attempted on something that is not a socket.
2015-11-06 11:08:02 CST LOG: incomplete startup packet
2015-11-06 11:08:17 CST LOG: could not receive data from client: An operation was attempted on something that is not a socket.
2015-11-06 11:08:17 CST LOG: incomplete startup packet
2015-11-06 11:08:35 CST WARNING: pgstat wait timeout
2015-11-06 11:08:46 CST WARNING: pgstat wait timeout
2015-11-06 11:09:35 CST WARNING: pgstat wait timeout
2015-11-06 11:09:45 CST WARNING: pgstat wait timeout
I also disabled firewall and tried. It still fails.
any hints on what could be happening ?
It looks like something's wrong with the windows TCP/IP stack.
See:
https://support.microsoft.com/en-us/kb/817571
PostgreSQL error: could not receive data from client: An operation was attempted on something that is not a socket
The mailing list thread http://www.postgresql.org/message-id/AANLkTimgyax1LUU85caP2FfwKTWkdAwDIE3S7zI-6oea#mail.gmail.com
Possible actions include:
Completely uninstall your antivirus product or (worse) "internet security" suite if you have one. Disabling it is not likely to be enough. You can reinstall or install a better one once you've confirmed it's the cause.
Do a windows TCP/IP stack reset. Exact steps depend on your Windows version, which you did not mention, so you might need to look around a bit. This might have side effects like clearing settings that break other applications. You should know what you're doing, be willing to accept possible problems, or get professional support from a tech with Windows skills.
Check the system for possible rootkit or undetected virus activity
Uninstall any unnecessary drivers for 3G modems, cable providers, etc
If you installed any software recently, remove it