SystemD Values Get Reset to Default after some Time
Hi,
I'm using two machine as gateways and Keepalive HA load balancers, so I've enabled some kernel options, but after some time (the next day or so), these options have been reset to their default (disabled) values.
Why does that happen, and how to stop that from happening?
I have to reset the parameters each time. I could set up a script to run on a schedule, but I would like to prevent it from happening in the first place.
These are the values which get reset to 0 (this time):
net.ipv4.conf.all.accept_redirects
net.ipv4.vs.conntrack
net.ipv4.vs.expire_nodest_conn
net.ipv4.vs.expire_quiescent_template
Thank you.
I didn't find anything in the journal, but I am curious about what I did find: every 1-3 seconds, there is an entry which is repeated: "sshd[<Number>]: Set /proc/self/oom_score_adj to 0". What does it mean? I've been scrolling for the last few days-worth of this message, and there is still more... I also have many attempts to log in via ssh from China, from multiple IP addresses, with various user names and many unsuccessful authentication attempts for root; maybe the entry is related to these attempts...
Going back to the original discussion, I think I've seen someone mention a systemd service or something like that which resets kernel settings, or some other things, to their default values, in a post (here), but I didn't find it again. Is there such a service that does something like that?
It is strange that since I started this thread, and since I reset the settings to 1, they have remained at 1. I notice that it happens irregularly.
Similar Messages
-
N8 after some time handsfree mode
My N8 gets into handsfree mode after some time....
I have to press 2 times then the handset/handsfree button to get the connection back!
Solved!
Go to Solution.Sent you the mail
Hope it helps -
Io exception: Connection reset - after some time interval
Hi,
We are facing a problem in connection while implementing connection pooling using OracleDataSource .
Application is running with out any issue if it is called continuously.
If we call the application after some time interval, connection is being reset. We are able to get the connection instance but connection reset exception is thrown while calling callableStatement.execute().
If application called after application restart it is working fine.This issue is happening only for the first few calls made after some time interval.(after 1 hr)
After that call is proceeding without any issue.
Environment Details
Application is accessing 4 oracle databases and the versions are viz., 9.2.0.8,10.2.0.3,10.2.0.4 and 9.2.0.1.
Driver : ojdbc14.jar
App Server : tomcat
jdk version: 1.5
OracleDataSource is being used for connection pooling.
propCache.setProperty("ConnectionWaitTimeout",10); // caching parms
ods.setConnectionCachingEnabled(true);
ods.setLoginTimeout(intLoginTimeout);
propCache.setProperty("MinLimit","5");
propCache.setProperty("MaxLimit", "20");
propCache.setProperty("InitialLimit","5");
propCache.setProperty("ValidateConnection", "true");
propCache.setProperty("AbandonedConnectionTimeout", "10");
The exception details are as follows
java.sql.SQLException: Io exception: Connection reset
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:987)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
at oracle.jdbc.driver.OracleStatement.doScrollExecuteCommon(OracleStatement.java:4043)
at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(OraclePreparedStatement.java:10826)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3337)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3445)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Unknown Source)
Any suggestion to resolve this issue is greatly appreciated.
Thanks.Hi,
try to utilize OracleDataSource#setConnectionCacheProperties() with property InactivityTimeout equals to 1800 (30 minutes in seconds). -
How can i Delete all foto from my iphone and after some time get them one more time on it but not as a new album, i want them in the camera roll ?
How can I delete EVERY THING off my Mac and have it like new?
Boot from the software install DVD and do an "erase and install" when prompted. -
I'm unable to deauthorize my computer. Getting an error message "Unable to erase authorization. Please try again after some time."
ok, please try below steps,
1. Quit ADE.
2. Choose Start > Run.
3. In the Open text box, type regedit and then press Enter. The Registry Editor opens.
4. In the left pane of the Registry Editor, locate the following registry key:
HKEY_CURRENT_USER\Software\Adobe\Adept
5. Right-click the Adept key and choose Delete.
6. In the Confirm Key Delete dialog, click OK.
Your authorization will be deleted.
ADE will be deauthorized now.
Now Authorize ADE again. -
SelectOneChoice value getting reset
Hi All,
My page has 4 conditional selectOneChoice components.
1.State
2.City
3.Area
4.Zipcode
I have partialtriggers for all components.When i select "State" my valueChangeListener gets called and values for "City" comes but the value for "State" selectOneChoice gets reset to "Unselected label".
Please let me know the reason for value getting reset.
Following is the code
JSPX page
<af:selectOneChoice id="compId328"
value="#{bindings.State.inputValue}"
label="#{messageBean['SS_UM_STATE']}"
required="#{ !umRegistrationIdtypeChange.tdnRegPprFlag}"
unselectedLabel="#{messageBean['SS_UM_STATE_SELECT']}"
autoSubmit="true" inlineStyle="width: 125px"
binding="#{umRegistrationIdtypeChange.stateSelecOneChoice}"
valueChangeListener="#{umRegistrationIdtypeChange.chngCity}" >
<af:selectItem label="AN" value="AN"/>
<af:selectItem label="AP" value="AP"/>
<af:selectItem label="AR" value="AR"/>
<af:selectItem label="AS" value="AS"/>
<af:selectItem label="UP" value="UP"/>
<af:selectItem label="WB" value="WB"/>
</af:selectOneChoice>
<af:selectOneChoice id="compId333" partialTriggers="compId328"
unselectedLabel="Select"
inlineStyle="width: 125px"
binding="#{umRegistrationIdtypeChange.cityselecOneChoice}"
value="#{bindings.City.inputValue}"
required="#{ !umRegistrationIdtypeChange.tdnRegPprFlag}"
label="#{messageBean['SS_UM_CITY']}"
autoSubmit="true"
valueChangeListener="#{umRegistrationIdtypeChange.chngArea}">
<f:selectItems value="#{umRegistrationIdtypeChange.returnCityList}"/>
</af:selectOneChoice>
<af:selectOneChoice id="compId334"
partialTriggers="compId333 compId328"
inlineStyle="width: 125px"
required="#{ !umRegistrationIdtypeChange.tdnRegPprFlag}"
value="#{bindings.StreetAddress3.inputValue}"
autoSubmit="true" unselectedLabel="Select"
binding="#{umRegistrationIdtypeChange.cityareaSelecOneChoice}"
label="#{messageBean['SS_UM_STREET_ADDR3']}"
valueChangeListener="#{umRegistrationIdtypeChange.chngPincode}">
value="#{bindings.StreetAddress3.inputValue}"-->
<f:selectItems value="#{umRegistrationIdtypeChange.returnAreaList}"/>
</af:selectOneChoice>
<af:selectOneChoice id="compId335"
partialTriggers="compId334 compId333 compId328"
inlineStyle="width: 125px"
value="#{bindings.PostalCode.inputValue}"
autoSubmit="true"
required="#{ !umRegistrationIdtypeChange.tdnRegPprFlag}"
unselectedLabel="Select"
label="#{messageBean['SS_UM_ZIP_CODE']}"
binding="#{umRegistrationIdtypeChange.postalcodeSelecOneChoice}"
valueChangeListener="#{umRegistrationIdtypeChange.chngPostalCode}">
<f:selectItems value="#{umRegistrationIdtypeChange.returnPincodeList}"/>
</af:selectOneChoice>
<af:inputText id="compId320"
binding="#{umRegistrationIdtypeChange.houseNoInputText}"
label="#{messageBean['TDN_UM_STREET_ADDR1']}"
inlineStyle="width: 125px" maximumLength="100"
required="true"
requiredMessageDetail=" "
value="#{bindings.StreetAddress.inputValue}"/>
<af:inputText id="compId323"
binding="#{umRegistrationIdtypeChange.street_addressInputText}"
label="#{messageBean['TDN_UM_STREET_ADDR2']}"
maximumLength="150" inlineStyle="width: 125px"
rendered="true"
required="true"
requiredMessageDetail=" "
value="#{bindings.StreetAddress2.inputValue}"/>
Code in Bean
public List<SelectItem> chngCity(ValueChangeEvent valueChangeEvent) {
log.info("Call the chngCity method");
returnCityList = new ArrayList<SelectItem>();
String state = valueChangeEvent.getNewValue().toString();
if (state != null) {
List<Object> returnPickList = RegAMImpl.getCity(state);
for (Object obj: returnPickList) {
SelectItem si = new SelectItem();
String eDistValues = obj.toString();
si.setLabel(new String(eDistValues));
si.setValue(new String(eDistValues));
returnCityList.add(si);
return returnCityList;
public List<SelectItem> chngArea(ValueChangeEvent valueChangeEvent) {
log.info("Call the chngArea method");
returnAreaList = new ArrayList<SelectItem>();
String city = valueChangeEvent.getNewValue().toString();
if (city != null) {
List<Object> returnPickList = RegAMImpl.getArea(city);
for (Object obj: returnPickList) {
SelectItem si = new SelectItem();
String eDistValues = obj.toString();
si.setLabel(new String(eDistValues));
si.setValue(new String(eDistValues));
returnAreaList.add(si);
return returnAreaList;
public List<SelectItem> chngPincode(ValueChangeEvent valueChangeEvent) {
log.info("Call the chngPincode method");
returnPincodeList = new ArrayList<SelectItem>();
String area = valueChangeEvent.getNewValue().toString();
if (area != null) {
List<Object> returnPickList = RegAMImpl.getPincode(area);
for (Object obj: returnPickList) {
SelectItem si = new SelectItem();
String eDistValues = obj.toString();
si.setLabel(new String(eDistValues));
si.setValue(new String(eDistValues));
returnPincodeList.add(si);
return returnPincodeList;
public void chngPostalCode(ValueChangeEvent valueChangeEvent) {
String pincode = valueChangeEvent.getNewValue().toString();
UMPostalCodeTypeVOImpl pincodeVO = RegAMImpl.getUMPostalCodeTypeVO1();
ViewCriteria vc = pincodeVO.createViewCriteria();
ViewCriteriaRow vcr = vc.createViewCriteriaRow();
vcr.setAttribute("ParentName", pincode);
vc.insertElementAt(vcr, 0);
pincodeVO.applyViewCriteria(vc);
In pagedef i have also added RefreshCondition="{adfFacesContext.postback==true}" for iterators of VO's binded to selectOneChoice
<iterator id="ContactAddressVO1Iterator" RangeSize="-1"
Binds="Root.RegistrationAM1.ContactAddressVO1"
DataControl="SessionAMDataControl" RefreshCondition="{adfFacesContext.postback==true}"/>
<iterator id="RegStateTypeVO1Iterator" RangeSize="-1" RefreshCondition="{adfFacesContext.postback==true}"
Binds="Root.RegistrationAM1.RegStateTypeVO1"
DataControl="SessionAMDataControl"/>
<iterator id="UMCityTypeVO1Iterator" RangeSize="-1" RefreshCondition="{adfFacesContext.postback==true}"
Binds="Root.RegistrationAM1.UMCityTypeVO1"
DataControl="SessionAMDataControl"/>
<iterator id="UMCityAreaTypeVO1Iterator" RangeSize="-1" RefreshCondition="{adfFacesContext.postback==true}"
Binds="Root.RegistrationAM1.UMCityAreaTypeVO1"
DataControl="SessionAMDataControl"/>
<iterator id="UMPostalCodeTypeVO1Iterator" RangeSize="-1" RefreshCondition="{adfFacesContext.postback==true}"
Binds="Root.RegistrationAM1.UMPostalCodeTypeVO1"
DataControl="SessionAMDataControl"/>
Regards,
HimanshuPlease read the FAQ http://forums.oracle.com/forums/help.jspa and format your code, as it is unreadable.
Next you need to supply more information about your environment like jdev version and technology stack you are using.
Timo -
IE prompts credentials after some time and we get error rsHttpRuntimeClientDisconnectionError
Hi all,
Windows Server 2012
Reporting Services 2012 SP2
Internet Explorer 8
After some time running a report the end user is asked for his credentials again with the authentication prompt.
In the ExecutionLog we see the Client (IE) has its connection disconnected =
rsHttpRuntimeClientDisconnectionError
The server parameter are attached:
We appreciate any clue.
Thanks,
Alex Berenguer
Alex BerenguerHi Alex,
Per my understanding that you are running the report for sometime an then IE prompt for credential and you to this kind of error, right?
Based on my research, the "rsHttpRuntimeClientDisconnectionError" error may occur if:
Reporting Services creates the report and then goes to send it back to the client
Reporting Services finds out that the connection has been closed and responds with the disconnection error.
To resolve the issue, we can try to modify the TCP profile applied to the VIP.
Additionally, the issue may also occur due to a RESET coming from something between Report Server and the custom application. For example, an F5 NLB times these connections out on the either an HTTP or TCP level.
If your problem still exists, please also check if you will got the same problem on the other browser(firefox),you can also provide us more details information about the
TimeDataRetrieval,TimeProcessing,TimeRendering in the ExecutionLog table.
Similar thread for your reference:
ssrs Report taking to much time to load
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
Hello,
I am getting "Error! Check Activation" error message when I try to download epub from acsm file. I found that I should erase and re-authorize. When I try to erase authorization I get, "Please try after some time."
I need a solution.
Thanks.try this
I can't de authorize my computer. It just keeps saying to try again later. -
SAP instance getting stop after some time....
Hi,
Installed SAP on Cluster .SAP runs fine before and after switchover cluster when we do manually.
Problems comes after scripting ,While starting SAP Instance with SCript its work fine but after some time instance get fail.
And error comes
15:09:55
/usr/sap/SID/SCS01/exe/sapcontrol -prot NI_HTTP -nr 01 -function Stop
05.03.2014 15:09:55
Stop
OK
15:09:57
Instance on host insapr3pi01 stopped
15:09:57
Waiting for cleanup of resources
And it stop instance after some time.We are using Veritas (VCS cluster).Its continously search for cleanup of resources!!!!!!!
Regards
AdilSap instance start by that script but after sometime it give message in cluster software that Waiting for Cleaning of Resources.And after sometime it shutdown that instance.
Hi Adil,
When an external application (in this case SAP NetWeaver) is clustered with VCS, there are options to execute scripts at various operation cycles of the VCS agent for the application in question. I would recommend reviewing the application group configuration, corresponding VCS logs, as well as the path to the scripts and their content.
I can assist from VCS perspective if the question still stands.
Regards,
Villi -
WL 10.3 - Quartz's jobs stops after some time of correct executing
Hi,
I have a webapp (backend only) that is deployed on WebLogic 10.3 AS. In this webapp 5 quartz's job are executed (cron trigger). Two of them run 3 times a day, the next two of them execute every 5 seconds and the last one starts every 20 seconds.
The problem is that after some time of correct execution (about 20 min.) one on the jobs hangs on, then after some time (about 10 min.) the second one hangs on and finally only one of job (it's always the "20" second job) executes correct for a long time, then also stops. Above, concerns the only the "5" and "20" seconds jobs. All of the jobs are stateful and Oracle DB is used for synchronisation.
In DB I see that "TRIGGER_STATE" in "TRIGGERS" tables has value of "BLOCKED" for the jobs that hang on. Whenever the job crashes I see the following entry in the WL's log:
####<2011-05-30 08:50:11 CEST> <Info> <RJVM> <server_name> <AdminServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1306738211453> <BEA-000513> <Failure in heartbeat trigger for RJVM: -6468277378824263512S:127.0.1.1:[7001,7001,-1,-1,-1,-1,-1]:test_domain:test-server
java.io.IOException: The connection manager to ConnectionManager for: 'weblogic.rjvm.RJVMImpl@559e - id: '-6468277378824263512S:127.0.1.1:[7001,7001,-1,-1,-1,-1,-1]:test_domain:test-server' connect time: 'Mon May 30 08:45:11 CEST 2011'' has already been shut down.
java.io.IOException: The connection manager to ConnectionManager for: 'weblogic.rjvm.RJVMImpl@559e - id: '-6468277378824263512S:127.0.1.1:[7001,7001,-1,-1,-1,-1,-1]:test_domain:test-server' connect time: 'Mon May 30 08:45:11 CEST 2011'' has already been shut down
at weblogic.rjvm.ConnectionManager.getOutputStream(ConnectionManager.java:1719)
at weblogic.rjvm.ConnectionManager.createHeartbeatMsg(ConnectionManager.java:1662)
at weblogic.rjvm.ConnectionManager.sendHeartbeatMsg(ConnectionManager.java:599)
at weblogic.rjvm.RJVMImpl$HeartbeatChecker.timerExpired(RJVMImpl.java:1584)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>The quartz version I use is 1.8.4.
I use my own implementation of scheduler to start the jobs at the deploy time. Jobs are also always unscheduled when the app is undeployed. After undeploying all entries from quartz's tables are erased excepting the one in "SCHEDULER_STATE" table.
The webapp is tested standalone but it will be in the production environment it will be clustered (two nodes).
What can cause the problem? And how to solve it?
Below is my quartz.properties file as it's deployed with webapp:
#============================================================================
# Configure Main Scheduler Properties
#============================================================================
org.quartz.scheduler.instanceName = SimulatorClusteredScheduler
org.quartz.scheduler.instanceId = AUTO
#============================================================================
# Configure ThreadPool
#============================================================================
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 10
org.quartz.threadPool.threadPriority = 5
#============================================================================
# Configure JobStore
#============================================================================
org.quartz.jobStore.misfireThreshold = 60000
#org.quartz.jobStore.isClustered = true
#org.quartz.jobStore.clusterCheckinInterval = 20000
#org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreCMT
#org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.useProperties = false
org.quartz.jobStore.dataSource = myDS
org.quartz.jobStore.nonManagedTXDataSource = myDS
org.quartz.jobStore.tablePrefix = QRTZ_
org.quartz.jobStore.isClustered = true
org.quartz.jobStore.clusterCheckinInterval = 20000
#============================================================================
# Configure Datasources
#============================================================================
org.quartz.dataSource.myDS.jndiURL=${org.quartz.dataSource.myDS.jndiURL}
org.quartz.dataSource.myDS.jndiAlwaysLookup=true
org.quartz.dataSource.myDS.java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
org.quartz.dataSource.myDS.java.naming.provider.url=${org.quartz.dataSource.myDS.java.naming.provider.url}
org.quartz.dataSource.myDS.java.naming.security.principal=${org.quartz.dataSource.myDS.java.naming.security.principal}
org.quartz.dataSource.myDS.java.naming.security.credentials=${org.quartz.dataSource.myDS.java.naming.security.credentials}
#======================================================================
# Configure Plugins
#======================================================================
#org.quartz.plugin.jobInitializer.overWriteExistingJobs = true
#org.quartz.plugin.shutdownhook.cleanShutdown = true Any help would be greatly appreciated.Thanks for you response,
I have a entry, in web.xml, because of this this working at startup time. (connecting the quarts scheduler)
When server and application started every thing it's working but after some time(mostly after 30 minutes), without any change in server/application we are getting the above error.
We have entry in web.xml file like this.
<ejb-local-ref>
<ejb-ref-name>ejb/DXTrackingSession</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.sample.app.ejb.tracking.DXTrackingSession</local>
</ejb-local-ref> -
GPRS services suddenly stop working after some time abt 4 hrs.Airplane on off solves it
I am using a factory unlocked iPhone 4 GSM in India. Iam currently using it on airtel network 2G services i.e GPRS services. Now the problem I have noticed is that the GPRS services suddenly stop working after some time say about 4 hours. Then what i do is to turn airplane mode on and then off or restart the phone and GPRS starts working. Agan after some time I have to repeat this exercise. Please help soon. This is happening since the time i bought this phone i.e from past 20 days. I have tried allpossible network settings and resetting network but nothing helped. everything else is working perfect.
Hi Syed,
I have also started facing the exact same problem since the past few months with my docomo service.
Earlier, EDGE / GPRS used to work just fine from my workplace where the network was good.
But recently, I got my iphone replaced, due to a network problem, from an apple store in indianapolis, and also upgraded to ios 5.....so not sure now whether this intermittent EDGE / GPRS outage is due to the new hardware or the new OS.
Did you upgrade to iOS 5 and did it help?
PS: iOS 5.0.1 also doesn't seem to be helping, I still need to restart the phone to get EDGE / GPRSt to work.....will try out the airplane mode thing....at least that shouldn't take as much time as a full reboot.
Regards,
Hemant -
Data vanishing after some time
Hi,
We have enhanced standard info type 9 & added a custom field.
in PAI defaulting some value to this custom field.
In PA30 when we make changes to existing records it defaults the valu in the custom field and when we save it it saves to data base.
After some time the value in this field vanishes.
Any idea on this?Hi
Create Audit log for infotype 0009 and check the user by which record is changed.
To create Audit log, make entries in -
1. V_T585A
2. V_T585B
3. V_T585C
Then run the report RPUAUD00 or tcode PC00_M16_UAUD (Payroll audit trail). Check if the record is changed by the user used to schedule background job.
Regards,
Rupesh
Edited by: rumhat on Apr 16, 2011 10:38 AM -
BFF62048 Error after some time
Hello everyone,
I need CAN to communicate between a converter and our test cell. I use an NI PCMCIA-CAN/2 Card and LabVIEW 2012 SP 1. My program works fine but after some time I get an the error BFF62048. I know what it means but I don't know where the problem is nor how to solve it.
I use the Channel API for programming the CAN-communication.
The problem is I need to write at different timings on the can. Some messages need to be sent at 12ms others at 100ms. Therefore I initialized the messages in different tasks.
For CAN 1 have 1 readtask and 4 writetasks. For CAN 2 I have 1 readtask and 2 writetasks. I hope it is not too much for this little card.
The readtasks were both executed at 10ms after each other. The writetasks are executed in several parallel loops, except for one writetask. I need to send back an "alive value" immediately, so I read a value from my CAN-read-array and put it back on the CAN with a writetask. Which means I have to access the card 3 times in one loop.
I reduced the execution of my CAN-read-loop from 10ms to 20ms and the program runs much longer. (from ~30 min to 4 hours)
In my opinion the problem should occur immediately after I started my program not after some hours.
If someone have some advices for me, that would be great.
Thanks,
RinoI use Labview 2012 (fully updated). Driver Version is 2.7.4
I don't think there is a problem with the bus load. Only 50 % of the capacity is used.
Unfortunately we are in lack of hardware, but I'm sure my code will work on a "real" PCI-CAN card. Is it possible, that the PCMCIA-card maybe has a problem with too many tasks? I couldn't find any information regarding the task limit in the hardware specification or I'm blind
I attached the project as *.zip file. I had to remove the can database files (*.dbc) because they are confidential.
Attachments:
Abnahme_629.zip 1058 KB -
Socket connection dies after some time being idle w/o firing event
Hi,
I use this code to connecto my server from my Client
if (socket == null){
try{
if (pwd.length > 0)
System.out.println("opening connection...to "+host+" at port "+port);
socket = new Socket(host, port);
toServer = new ObjectOutputStream(socket.getOutputStream());
fromServer = new ObjectInputStream(socket.getInputStream());
System.out.println("Connection established!");
fireClientEvent(new ClientEvent(this, ClientEvent.CONNECTION_ESTABLISHED, ""));
this.connected = true;
Hashtable<String, String> table = new Hashtable<String, String>();
table.put("action", "login");
table.put("key", convertToString(pwd));
sendObject(table);
}catch(IOException e){
try{
if (socket != null)
socket.close();
System.out.println("Error while connecting... Server does not exist!");
this.connected = false;
fireClientEvent(new ClientEvent(this, ClientEvent.SERVER_DOES_NOT_EXIST, getHost()+":"+getPort()));
}catch(IOException x){
System.out.println("I/O ERROR @ CLIENT CONNECT!");
removeAllListeners();
x.printStackTrace();
}And this is how my server responds to client requests:
public void run()
ServerSocket server = null;
Socket socket = null;
Hashtable<String, String> ClientInfo = new Hashtable<String, String>();
try{
server = new ServerSocket(getPort());
//listen for connections
while (!stopServer)
try{
System.out.println("Starting Server at port: "+getPort());
socket = server.accept();
ClientInfo.put("remoteip", socket.getInetAddress().toString());
fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_REQUESTED, null));
ThreadedSocket tsocket = getThreadedSocket(socket);
tsocket.addSocketListener(this);
tsocket.setMaxSolvingTime(maxSolvingTime);
Sockets.add(tsocket);
executor.execute(tsocket);
fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_ESTABLISHED, null));
}catch (IOException ioe){
fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.UNEXPECTED_CONNECTION_ERROR, null));
exceptionThrown(ioe);
}catch(Exception x){
exceptionThrown(x);
}finally{
try{
server.close();
socket.close();
}catch (Exception e){
exceptionThrown(e);
}It seems that after some time (aprox. 10-15 minutes) being idle, my client gets disconnected withougt firing any event so the Server thinks the client is still connected but it does not get any messages because the client has closed the connection (I think)
Am I doing/thinking something wrong?Thanks It seems that I am doing something completely wrong.
I created this object:
package main;
import java.util.Hashtable;
import java.util.Vector;
public class SocketPinger implements Runnable {
private Vector<ThreadedSocket> sockets = null;
Hashtable<String, Object> action = new Hashtable<String, Object>();
public SocketPinger()
action.put("action", "scheduled_ping");
public SocketPinger(Vector<ThreadedSocket> socks)
this.sockets = socks;
action.put("action", "scheduled_ping");
public void run()
process();
public void process()
if (sockets != null)
for (ThreadedSocket socket : this.sockets)
try
socket.sendObject(action);
}catch(Exception e){
sockets.remove(socket);
public void setSockets(Vector<ThreadedSocket> socks)
this.sockets = socks;
}which I call with this command:
public class ThreadScheduler
private SocketPinger pinger;
private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
public void activate()
pinger = new SocketPinger(Sockets);
scheduler.scheduleWithFixedDelay (pinger, 5, 10, TimeUnit.SECONDS);
public void deactivate() {
scheduler.shutdown();
}This makes the Scheduler object wake up every 10 secs and ping all the clients. This works and since then everything seemed to work fine. Today I noticed that when I shut down the client abnormaly (System.exit(0);) the server doesn't understand it. The sendObject() method works fine.
This is my ThreadedSocket with the sendObject() method:
public class ThreadedSocket extends Thread
protected Socket socket;
protected ObjectOutputStream toClient;
protected ObjectInputStream fromClient;
protected ConnectionPool Pool;
protected DBManager db;
public ThreadedSocket(Socket sock, int priority, ConnectionPool pool) throws IOException
socket = sock;
this.Pool = pool;
toClient = new ObjectOutputStream(socket.getOutputStream());
fromClient = new ObjectInputStream(socket.getInputStream());
setPriority(priority);
db = new DBManager(Pool);
public void sendMessage(String message)
try{
toClient.writeUnshared(message);
toClient.flush();
}catch(Exception e){
public void sendObject(Hashtable<String, Object> table)
try{
toClient.writeUnshared(table);
toClient.flush();
toClient.reset();
}catch(Exception e){
}and this is how I initialize the ThreadedSocket on my Server object
public void run()
ServerSocket server = null;
Socket socket = null;
Hashtable<String, String> ClientInfo = new Hashtable<String, String>();
try{
server = new ServerSocket(getPort());
//listen for connections
while (!stopServer)
try{
System.out.println("Starting Server at port: "+getPort());
socket = server.accept();
ClientInfo.put("remoteip", socket.getInetAddress().toString());
fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_REQUESTED, null));
ThreadedSocket tsocket = getThreadedSocket(socket);
tsocket.addSocketListener(this);
tsocket.setMaxSolvingTime(maxSolvingTime);
Sockets.add(tsocket);
executor.execute(tsocket);
fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_ESTABLISHED, null));
}catch (IOException ioe){
fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.UNEXPECTED_CONNECTION_ERROR, null));
exceptionThrown(ioe);
}catch(Exception x){
exceptionThrown(x);
}finally{
try{
server.close();
socket.close();
if (scheduler != null)
scheduler.deactivate();
}catch (Exception e){
exceptionThrown(e);
So I have to make this question unanswered, because it is actually partially answered. Although the server can wake up and ping the clients, I still find it difficult to see if the client really exists after some abnormal termination (i.e. computer dies, or sth similar). -
HI
I created a web application and configured rbs storage ,
I uploaded documents (for ex: 18 number)
after uploaded documents , and observed the RBS storage folder, number of files are increasing (39 number) , its working fine
and also I run the querys to check the rows increasing or not , (when I upload new doc rows are increased its fine also)
select count(*) from alldocs
Select count(*) from AllDocstreams
but when I delete some docs from document library ,
1)the doc itself deleted from document library
2)when I check the rbs storage there is no number of files are decreased(its still 39 files ), its same as before doc deleted from doc library
after some time I found the number of files are decreasing from RBS storage folder in sql server,
here I want to know the how the files are decreasing from RBS storage after some time, where shld I check the settings for this? and how I control on it
here how I know the settings for cleaning up orphan BLBOS how these deleted BLOB
adil1. WHen you delete the file from Sharepoint, it is still present in Recycle bin. This is a default setting in sharepoint for 30 days. Once files are deleted fro Recycle bin, it can also be delete from RBS
2. There is a RBS cleanup job which deletes files from RBS. for more info check
http://mehuljamod.blogspot.in/2012/09/remote-blob-storage-maintainer-rbs.html
Maybe you are looking for
-
Loading sound clips in my swing application
I have searched all the forums, din't find what i want. I have many small sound files to be played in my application. Even on mouse Pressed, Drage etc etc.... Now I was looking for a better way of Loading the Sound files in memory as the application
-
ok here it is.. im pretty sure im logged under s s for user and scottantnoah for my nickname for game center.. i deleted my iphone and lost all info.. whenever i go to gamecenter and put my email in it says that email is allready being used.. thats t
-
I'm using Captivate 2 and have linked some Excel files to my published movies. The published movies and the Excel files are on my Web server in the same directory, but users are having the following problems: The Excel file does not open and the user
-
IPhoto slideshow in iDVD project
I have some questions on problems creating a iDVD project of an iPhoto slideshow: 1. Is it possible (how ?) to create buttons for scene selections, as in iMovie ? My project contains one continuous slideshow (942 still pictures) which I want to divid
-
User-exi for tMM pricing in PO
When create a purchase order I would like to automatically update a pricing condition in MM using the mode of transport field EXPVZ (header import data in PO). For this we added a new field in KOMK and KOMG named ZZTANSPORT which we want to be updat