Questions tagged [autoflush]
34 questions
2
votes
0 answers
PrintWriter doesn't flush immediately, even with autoFlush
I have a Java server that appends certain information from multiple clients to a single file. So I am creating a FileWriter with append=true, and a PrintWriter with autoFlush=true. However, when I monitor (E.g., using the tail command) the file, the…

fivelements
- 1,487
- 2
- 19
- 32
2
votes
1 answer
Java: PrintStream unexpectedly autoflushing
import java.io.PrintStream;
import java.util.Scanner;
public class OutputTest
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
PrintStream out = new PrintStream(System.out);
…

Retsam
- 30,909
- 11
- 68
- 90
1
vote
0 answers
Wildfly, how to force programmatically the flush of server log file when autoflush = false
for performance reason I have set the property autofush=false in the subsystem urn:jboss:domain:logging:
WildFly does not immediately flush the server.log file but does so according…

datatex
- 11
- 2
1
vote
1 answer
Collections are not persisted, because Spring-Webapp set's Hibernate-Flush-Mode to Manual
My Spring-3.0.5/Hibernate-3.3.0 webapp does not store collections. When creating a new persitent object with an asscociated collection, the object is persited, but the collection not. In a test-case all works well, so it's not a faulty…

Kai Moritz
- 611
- 2
- 7
- 19
1
vote
0 answers
Hung thread in IdentityHashMap during DefaultAutoFlushEventListener.onAutoFlush
I am new to Spring and Hibernate world. The issue is killing us. It's happening only in Production. We tried to reproduce this in a lower environment with the same load, configurations. But, it's not reproduced.
Back Round of the issue - When we…

Testuser
- 11
- 1
1
vote
1 answer
Perl socket (IO::Socket::INET6) is not autoflushing
I have a very strange scenario.
I have a Perl application that receives input from several connections (sockets and pipes).
Than I am forwarding the message to a pre-defined destinations (sockets are already opened).
see code example:
our…

yanger
- 227
- 1
- 3
- 14
1
vote
1 answer
How does IPC::Open3 enable autoflush for CHLD_IN
The documentation for IPC::Open3 states:
The CHLD_IN will have autoflush turned on
But nothing in the source code mentions IO::Handle::autoflush. What mechanism does the module use to turn on autoflush for CHLD_IN?

josch
- 6,716
- 3
- 41
- 49
1
vote
2 answers
Avoid buffering when parsing stdout with Perl
I want to parse the output of an external program (some shell command) line by line using Perl. The command runs continuously, so I put it into a thread and use shared variables to communicate with my main routine.
Up to now my code looks similar…

raidlman
- 355
- 2
- 14
1
vote
0 answers
PHP, implicit_flush: enable to run two instances of the same script in the same browser
I have a PHP script that uses implicit_flush() to output data when it's ready, the problem is that when I start two instances from Google chrome or Firefox the seconde instance remains loading without outputing anything!
To prevent locking issues…

ubugnu
- 1,004
- 2
- 15
- 30
1
vote
1 answer
EntityManger flushmode in JDBC
JPA is essentially an higher abstraction of JDBC. EntityManager has an API setAutoFlushMode. It can be set to AUTO or COMMIT. What's th equivalent of this in JDBC terms?
thanks

dublintech
- 16,815
- 29
- 84
- 115
0
votes
1 answer
How to add a cursor() of a db connection to a sqlalchemy.orm session? "sqlalchemy.orm.exc.UnmappedInstanceError: Class 'builtins.int' is not mapped"
I am in a Ubuntu 22.04 Docker container with Python 3.10.
I use these apt packages:
mysql-client
libmysqlclient-dev
I use the following Python packages:
import mysqlclient==2.1.0
import sqlalchemy
# for the environment variables:
from dotenv import…

questionto42
- 7,175
- 4
- 57
- 90
0
votes
0 answers
'NoneType' object has no attribute '_autoflush' in SQLAlchemy Query().filter_by().all() object
having trouble in sqlAlchemy query when getting all data from table
it raise error when i use .all() mathod
here is error:
File "./individual/admin/handler.py", line 69, in test_account_indiv
query =…

Awais Kaleem
- 11
- 2
- 9
0
votes
2 answers
How to clear messages from a JMS Topic based on age of messages
We have an application that publishes event notifications to a JMS Topic. The issue noticed here is that after a considerable amount of time, the message store in Weblogic reaches more that 10GB in size. Is there a way to implement a component that…

WrijuB
- 141
- 1
- 3
- 14
0
votes
1 answer
Wordpress page updates not publishing globally
I have a client who is frustrated that the updates she does are not appearing online. If the client misses flushing cache, is there a way to do that automatically. Is there any plugin that would not increase the size of the already large site and…

Harshad Methrath
- 29
- 1
- 6
0
votes
2 answers
PrintWriter autoflush puzzling logic
public PrintWriter(OutputStream out, boolean autoFlush):
out - An output stream
autoFlush - A boolean; if true, the println, printf, or format methods
will flush the output buffer
public PrintStream(OutputStream out, boolean autoFlush):
out -…

leventov
- 14,760
- 11
- 69
- 98