Is it possible with JDeveloper to debug an executing JAR file on my PC? I have a JAR file that is executed with "javaw ..." and it works fine.  Is there a way with JDeveloper, or any other tool, to debug that executing file? The answers found on this board focus on Eclipse whcih I do not have.
What are Java command line options to set to allow JVM to be remotely debugged? I know there's some JAVA_OPTS to set to remotely debug a Java program.  What are they and what do they mean ?
The  says that public class SomeObject {   public void SomeOperation()   {     lock(this)     {       //Access instance variables     }   } }  is &quot;a problem if the instance can be accessed publicly&quot;. I'm wondering why? Is it because the lock will be held longer than necessary? Or is there some more insidious reason? How to make a HTML Page in A4 paper size page(s)? How do I split a string with multiple separators in JavaScript? I'm trying to split on both commas and spaces, but AFAIK JavaScript's split() function only supports one separator. Should I assign dwellers to the storage room? Reapplying for a UK Standard Visitor visa after a refusal I have rigged up a notch filter from . See below: -     Its the first circuit. Now I am trying to calculate its transfer function. I have calculated two equations, but I need the third one:   (Vin-V2)/(1/SC1) = V2/R3 (Vin-V1)/R1 = (V1-Vo)/(R2+(1/SC2))   V1 and V2 are the potentials at the input of the op-Amp. Reading list in topological QFT Does iOS have a firewall? When I search for similar questions that I am going to ask, I usually can't find anything through the search box on Stack Overflow. But when I enter my question on the &quot;Ask Question&quot; page, the questions suggested through the &quot;Questions with similar titles&quot; box are usually relevant. Do you experience the same thing? Git SSH error: "Connect to host: Bad file number" Moving a magnet close to a conductor induces a current. If it consists of a superconducting material with resistance $R=0$, then my textbook says:     Then the induced current will continue to flow even after the induced emf has disappeared.   This makes sense physically - there is no resistance to stop charge flow. But then the book draws this conclusion:     Thanks to this persistent current, it turns out that the flux through the loop is exactly the same as it was before the magnet started to move, so the flux through a loop of zero resistance never changes.   If the flux $\Phi$ never changes in a superconductor, from Faraday's law this means - from what I have learned - that no electromotive force $\mathcal{E}$ is induced:  $$\mathcal{E}=-\frac{\mathrm{d} \Phi}{\mathrm{d}t}=0 \:\:\:\:\text{ when }\frac{\mathrm{d} \Phi}{\mathrm{d}t}=0$$  My conclusion is therefor: There would never be induced any current at all. Current can never be induced in a superconductor loop. Is this the case or am I misunderstanding my book? What is a deterministic method for evaluating a sensible buffer pool size? I'm trying to come up with a sane way to understand if the max server memory (mb) setting is appropriate (either should be lower, or higher, or stay the way it is).  I am aware that max server memory (mb) should always be low enough to leave room for the operating system itself, etc.    The environment I'm looking at has several hundred servers; I need a reliable formula I can use to determine if the present size of the buffer pool is appropriate since RAM is costed per GB allocated to each server.  The entire environment is virtualized, and "physical" RAM allocated to a VM can easily be changed up or down.  I have a particular SQL Server Instance I'm looking at now with a PLE of 1,100,052 seconds, which equates to 12.7 days (the amount of time the server has been up).  The server has a max server memory setting of 2560MB (2.5GB), of which only 1380MB (1.3GB) is actually committed.    I've read several items including one by Jonathan Keheyias () and another by Paul Randal (), and several others.  Jonathan advocates monitoring for a PLE below 300 per 4GB of buffer pool as being too low.  For the SQL Server Instance above, 300 * (2.5 / 4) = 187 results in a really really low target PLE below 300.  This instance has 290GB of SQL Server data (not including log files), and is only used for integration testing.  Assuming the last 12 days is representative of typical usage for this server, I'd say the max server memory (mb) setting could be lowered.  At the other end of the scale, I have another integration-test server with a PLE of 294, that has a max server memory (mb) setting of only 1GB.  This server has only 224MB of SQL Server data not including logs, and is running some BizFlow databases.  This server might benefit from a higher max server memory (mb) setting.  I'm thinking a good starting place for targets that might be assigned too much memory could include looking at:  SELECT      RamMB = physical_memory_in_bytes / 1048576     , BufferPoolCommittedMB = bpool_committed * 8192E0 / 1048576     , BufferPoolCommitTargetMB = bpool_commit_target * 8192E0 / 1048576     , PercentOfDesiredSizeMB = CONVERT(INT,(CONVERT(DECIMAL(18,2),bpool_committed)                              / bpool_commit_target) * 100) FROM sys.dm_os_sys_info;   If BufferPoolCommitTargetMB / BufferPoolCommittedMB is greater than 1, the server is not using the entire buffer pool.  If the machine in question also has a PLE of greater than "x" then it might be a good candidate for a decrease in max server memory (mb).  Since the Buffer Manager:Lazy writes/sec performance counter tracks the number of times SQLOS has written pages out to disk between checkpoints due to memory pressure, this might be another good thing to look at.  DECLARE @WaitTime DATETIME; SET @WaitTime = '00:00:15'; DECLARE @NumSeconds INT; SET @NumSeconds = DATEDIFF(SECOND, 0, @WaitTime); DECLARE @LazyWrites1 BIGINT; DECLARE @LazyWrites2 BIGINT;  SELECT @LazyWrites1 = cntr_value  FROM sys.dm_os_performance_counters dopc WHERE (         dopc.counter_name LIKE 'Lazy writes/sec%' COLLATE SQL_Latin1_General_CP1_CI_AS     )     AND dopc.object_name = 'MSSQL$' + CONVERT(VARCHAR(255),                SERVERPROPERTY('InstanceName')) + ':Buffer Manager';  WAITFOR DELAY @WaitTime;  SELECT @LazyWrites2 = cntr_value  FROM sys.dm_os_performance_counters dopc WHERE (         dopc.counter_name LIKE 'Lazy writes/sec%' COLLATE SQL_Latin1_General_CP1_CI_AS     )     AND dopc.object_name = 'MSSQL$' + CONVERT(VARCHAR(255),                SERVERPROPERTY('InstanceName')) + ':Buffer Manager';  SELECT LazyWritesPerSecond = (@LazyWrites2 - @LazyWrites1) / @NumSeconds;   The above code assumes the server is under load during the 15 seconds it takes to run, otherwise it will report 0; which might be a misleading false-negative.  Should I also look at PAGELATCHIO_* wait stats or some other wait type as an indicator of memory pressure, or lack thereof?   My question is, how can I reliably determine a "good" target value for PLE and max server memory (mb)? Error: ! Font OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 at 10.95pt not loadable: Met ric (TFM) file not found Do mindless creatures get feats? Do creatures that have no Intelligence Score ("Int —" in the stat block) gain Feats? I'm creating some monsters but I failed to find the answer for this question. How to retrieve a module's path? I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from.  How do I retrieve a module's path in python? Server login attempts NOT blocked after configuring fail2ban So, I installed (and configured) fail2ban on three Ubuntu VPS servers. I configured (imo) a maximum of 3 failed login attempts (via Putty as root) within 2 minutes. Then I restarted the fail2ban service (according to ).    But when I look at my auth.log files in /var/log/ I still see 4, 5 or more failed attempts from certain IP's. So obviously I did something wrong as the IP is not blocked after 3 failed attempts.   It might have to do something with iptables, but that's where it gets a bit "foggy" for me..   Not sure how to setup a max-three-failed-login-attempts rule..  Additional: I see that the login attempts mostly have different ports for every attempt. Does that influence the count to max-three?  Because I see a port being "poked" twice and then no more attempts. Then the IP tries a different port (again 2 times). (all bots of course) Once a lead is converted it automatically creates an account, contact and one opportunity. But in my case i want to display the result without creating an Account. Please provide me with a sample code.  Any help will be appreciated... Zero visitors? What happened to site analytics about a week ago? This is the views section of the site analytics visible to 25k users on one of my sites:    That's, uh, not correct.  Our site has had its usual activity level during this time.  I checked a couple other sites, and the pattern is consistent.  This looks like a problem in the analytics data that's coming in; did Google change their API?  Update: Same site a week later; note that in addition to the brief spike of accuracy, page views have dropped to (near-)zero for the whole period, unlike the earlier report.  (I know this question has been closed as a dupe, but I thought having the two screen shots together might help somebody.) Donating winning lottery ticket to 501(c)3 Private Foundation: cost-basis deduction + full tax free redemption for foundation? How to label using just numbers from start of text field?